General Relativity Package for Friedman Eqns: MATLAB, Mathematica

Join the discussion
Registration is free. Ask a follow-up in this thread, or start your own.
3 replies · 2K views
David DCruz
Messages
7
Reaction score
0
I need to simulate the Friedman equations under different conditions of flat space. Can someone please tell me a good package in MATLAB, Mathematica or stand alone. I am most well versed in MATLAB but have coded in Mathematica before.
 
Physics news on Phys.org
Why do you need a package? The Friedmann equations are rather simple and easily numerically integrated for various energy contents of the Universe.
 
I am just about to study the Friedman equations. Are they just simple ordinary differential equations? Can inbuilt functions in MATLAB handle coupled ODE's? I primarily want to vary the 'w' parameter to see how the scale factor changes as the universe evolves.
 
David DCruz said:
I am just about to study the Friedman equations. Are they just simple ordinary differential equations?
Yes and yes.

Can inbuilt functions in MATLAB handle coupled ODE's? I primarily want to vary the 'w' parameter to see how the scale factor changes as the universe evolves.

This to me is somewhat suggests that you are going to consider one type of energy component only. If that is all you want to do the Friedmann equations can be solved analytically.