Mathematics & Science
Learning Center |
|||
Numerical Methods for Solving Differential EquationsEuler's MethodUsing the Method with Mathematica(continued from last page...) Your commands should have resulted in:
prelimsol2=euler[x+2y, {x,0,1}, {y,0}, 20] The last point is now (1.00, 0.931875), which is still not as accurate as we'd like. (Remember, it's supposed to be (1.00, 1.097264).) It seems obvious that the increased number of points is responsible for the increased accuracy! To get even greater accuracy, therefore, instruct Mathematica to recalculate the solution a third time, now using 100 steps. Let's go look at your results... |
|||
ODE Laboratories: A Sabbatical Project by Christopher A. Barker ©2017 San Joaquin Delta College, 5151 Pacific Ave., Stockton, CA 95207, USA e-mail: cbarker@deltacollege.edu |