You are on page 1of 1

OUTPUT:-

Enter initial value of t(t0):0


Enter step size:0.001
Enter value of t for which y is calculated:0.01
Enter Initial value of y:10
i t F(t) F'(t) yp yc
0 0.000 0.00 9.00 10.00 10.00
1 0.001 0.01 8.99 8.01 8.41
2 0.002 0.02 8.98 6.74 7.07
3 0.003 0.03 8.98 5.67 5.95
4 0.004 0.04 8.97 4.78 5.01
5 0.005 0.04 8.96 4.03 4.23
6 0.006 0.05 8.95 3.40 3.57
7 0.007 0.06 8.94 2.87 3.01
8 0.008 0.07 8.94 2.43 2.55
9 0.009 0.08 8.93 2.06 2.16
10 0.010 0.09 8.92 1.76 1.84
Result(From Implicit Euler)=1.83858
Result(From Explicit Euler)=1.163361
Analytycal Result=1.442954

You might also like