Mathematica: Adams Bashforth-Moulton method and its errors

Click For Summary
SUMMARY

The discussion focuses on the implementation of the Adams Bashforth-Moulton (AdamsBM) method in Mathematica for solving first-order systems of differential equations. The user successfully integrated the method using the NDSolve function with the "Method -> AdamsBM" option. They observed differences in solutions based on the working precision set for the AdamsBM method, indicating its sensitivity to precision. The primary inquiry revolves around calculating the error of the AdamsBM method and comparing its performance against other numerical methods.

PREREQUISITES
  • Familiarity with Mathematica 12.0 and its NDSolve function
  • Understanding of numerical methods, specifically the Adams Bashforth-Moulton method
  • Basic knowledge of differential equations, particularly first-order systems
  • Concept of working precision in numerical computations
NEXT STEPS
  • Research error analysis techniques for numerical methods in Mathematica
  • Learn how to implement and compare different numerical methods using Mathematica
  • Explore the concept of working precision and its impact on numerical solutions
  • Study the process of validating numerical solutions against exact analytical solutions
USEFUL FOR

Mathematics students, researchers in numerical analysis, and anyone interested in implementing and understanding the Adams Bashforth-Moulton method in Mathematica for solving differential equations.

Kortirion
Messages
8
Reaction score
0
Greetings PF. I am new to the subject of numerical methods and I'm interested in using the Adams method in Mathematica, this one with a predictor-corrector algorithm, to numerically solve a system of differential equations (first-order system).

As I'm pretty green I was reading this page http://reference.wolfram.com/mathematica/tutorial/NDSolvePlugIns.cdf and its section on the Adams method. I don't have the skill to make a more efficient algorithm than the one prescribed in there, so I just copy-pasted all the necessary code into my Mathematica notebook. With this I could use it within NDSolve by adding "Method -> AdamsBM".

It works, rolls ok with my system and when I take the difference in solutions of the "regular" unspecified method of NDSolve with this AdamsBM method, there's some difference depending on the working precision I tell AdamsBM to work in. So they really are different and this "working precision" plays some role.

What I'm really interested in at this point is the error of this numerical AdamsBM method. So in short - how do I calculate this error? How do I know that this AdamsBM is better than the other for example? I've read around a bit on the internet but couldn't find anything that fits my level of understanding regarding this subject.

Actually I have some other questions as well, but they are tied in with this question about the error of the method at hand. I think it's a good starting point.

Any advice or help is most appreciated, whether it's about the Adams method in general or any of its specifics. Thanks in advance!
 
Physics news on Phys.org
Can you give me the code. The link that you gave me broken
 
What if you selected a DE that was simple enough that there is an exact analytical solution available? Then run the Adams and the NDSolve and compare the results with the exact solution? Then choose another DE with an exact solution, but that is more difficult for the numerical methods. Repeat as needed.
 

Similar threads

  • · Replies 13 ·
Replies
13
Views
3K
  • · Replies 4 ·
Replies
4
Views
2K
  • · Replies 1 ·
Replies
1
Views
3K
  • · Replies 1 ·
Replies
1
Views
2K
  • · Replies 16 ·
Replies
16
Views
4K
  • · Replies 3 ·
Replies
3
Views
8K
  • · Replies 5 ·
Replies
5
Views
3K
  • · Replies 6 ·
Replies
6
Views
4K
  • · Replies 1 ·
Replies
1
Views
5K
  • · Replies 1 ·
Replies
1
Views
3K