- #1
ENDLESSYOU
- 29
- 0
I wonder which one is more accurate when solving differential equations?
Hmm. I would have thought ode45 would be a better choice for that problem in most cases. It's the one Mathworks use in their documentation - http://www.mathworks.co.uk/help/matlab/math/ordinary-differential-equations.html?s_tid=doc_12bENDLESSYOU said:Thanks. I'm dealing with the restricted circular three-body problem and solving the differential equations though numerical methods, ode15s on MATLAB and NDSolve on mathematica.
NemoReally said:Hmm. I would have thought ode45 would be a better choice for that problem in most cases. It's the one Mathworks use in their documentation - http://www.mathworks.co.uk/help/matlab/math/ordinary-differential-equations.html?s_tid=doc_12b
What led you to ask the question? Do you see any significant differences between Mathematica and Matlab? It doesn't address your particular case, but several years ago I partially-validated Matlab 6-dof simulation in Mathcad - the two applications gave very good agreement using a fixed 4th-order RK.
Are running modified DEs or getting very close to the "mass" centres? IME, the 3-body problem isn't generally treated as still, and the adaptive rk45 solver is usually good enough. Have you compared the results of running ode15 vs ode45?ENDLESSYOU said:They're stiff differential equations so ode15s might be a better choice.
OK, that would make the Mathematica implementation a bit more suspect. Are there global parameters in the 2 versions of Mathematica that might be different? How does the Mathematica version compare to the Matlab in the same environment?In my experience, MATLAB is more 'stable' than Mathematica. I once executed a same nb file on Windows and Ubuntu, but I got two different results.
The main difference between Matlab and Mathematica for solving differential equations is their underlying programming languages. Matlab uses a proprietary language, while Mathematica uses its own programming language called Wolfram Language. This can affect the syntax and commands used for solving differential equations.
Both Matlab and Mathematica are highly accurate for solving differential equations. However, Mathematica is known for its symbolic computation capabilities, which can lead to more accurate solutions for certain types of differential equations.
For beginners, Matlab may be a better choice as it has a more user-friendly interface and a larger community for support and resources. However, both Matlab and Mathematica have a learning curve and require some programming knowledge for solving differential equations.
Yes, you can use both Matlab and Mathematica for solving differential equations. Some researchers and scientists use both software to compare and validate their results. However, it may require some additional effort to learn and use both programs effectively.
Both Matlab and Mathematica have their own limitations when it comes to solving differential equations. For example, Matlab may struggle with certain types of complex equations, while Mathematica may have difficulty with certain boundary conditions. It is important to carefully consider the specific needs of your research before choosing a software for solving differential equations.