The euler function computes and displays approximations to points on the solution curve for the differential equation y'=f(t,y) with initial condition init_t, init_y. The step size is (final_t-init_t)/m. The function displays the points calculated and also returns a list of the points.
|
|
0.200000000000000 0.000000000000000 0.400000000000000 0.0400000000000000 0.600000000000000 0.119680000000000 0.800000000000000 0.236815339520000 1.00000000000000 0.385599038513605 0.200000000000000 0.000000000000000 0.400000000000000 0.0400000000000000 0.600000000000000 0.119680000000000 0.800000000000000 0.236815339520000 1.00000000000000 0.385599038513605 |
Now we can plot the points joined by line segments.
|
|
Plot the slope field.
|
|
Display the two plots together.
|
|
|
|