MATLAB Is fortran 90 or matlab better for simulating non-linear dynamics (Chaos)?

AI Thread Summary
For simulating damped driven oscillators, both Fortran 90 and MATLAB are viable options, with the choice depending on the user's preference for a programming language versus a scripting tool. MATLAB offers a powerful scripting environment with extensive solvers and matrix operations, making it user-friendly for simulations. In contrast, Fortran 90 is a traditional programming language that may require more effort to implement similar functionalities. Some participants also suggested Python with libraries like SciPy and NumPy as a strong alternative, along with Java's Open Source Physics library. Ultimately, the user decided to proceed with MATLAB for their project on non-linear dynamics.
great_sushi
Messages
30
Reaction score
0
I am going to be simulating damped driven oscillators for my project and I was wondering if someone could give me a definitive answer on the matter. I know MATLAB is more of a 'tool' than a language so I'm thinking the maths behind damped driven oscillators might be easier to implement into fortran 90.
If someone could give me a few pros and cons for the two and maybe more specifically to the simulations involved with damped driven oscillators that would be great.

Thank you!
 
Physics news on Phys.org
Good Afternoon Great_Sushi,

Actually, both are applicable. It really boils down to what process you want.

Matlab has a powerful scripting language, is matrix oriented and has a ton of solvers and operators.

Fortran is a programming language, it probably has libraries to do operations on matrix, solvers and operators. Do these work with each other? Good question.

A third option would be Python with scipy and numpy: it's python with matlab-like extensions. If you add matplotlib, you have a complete solution for the processing AND graphing.

J.
 
OK thanks alot! I've decided to go for matlab... first day back of semester 2 and we're doing non-linear dynamics using matlab. I have a whole semester dedicated to my project, certainly panned out well hehe.

As for damped driven oscillators, can you recommend any good books on the subject of non-linear dynamics?
 

Similar threads

Back
Top