/*
  2003/08/01  小松 研吾
 */
import java.io.*;

public class SecondDegreeDiffTrue {
    public static void main(String args[]) {
        // 変数宣言
	double h, v, x, y;

        // 刻み幅
        h = 0.01;

        // 初期条件
        v = 1; x = 0; y = 1;

        // ファイル出力
        String fn = new String();
        for(int i=0; i<1; ++i) {
            // ファイル名
            fn = "SecondDegreeDiffTrue.txt";

            // 真の解
            for(int j=0; j<10/h ; j++) {
                y = (1.0/5.0)*Math.exp(-3.0*x)+(4.0/5.0)*Math.exp(2.0*x);
                v = (-3.0/5.0)*Math.exp(-3.0*x)+(8.0/5.0)*Math.exp(2.0*x);
                x += h;

                // 書き込み
                try {
                    PrintWriter pw = new PrintWriter
                        (new BufferedWriter(new FileWriter(fn,true)));
                    pw.println(x + " " + y + " " +v);
                    pw.close();
                }
                catch(IOException e) {
                    System.out.println("入出力エラー");
                }
            }
        }
    }
}
