being new and all i was wondering how i would get started with writing a matlab code for friedmann equation for a closed universe?
\left(\frac{\dot{a}}{a}\right)^2 = \frac{8\pi G \rho}{3} - \frac{kc^2}{a^2}
Printable View
being new and all i was wondering how i would get started with writing a matlab code for friedmann equation for a closed universe?
\left(\frac{\dot{a}}{a}\right)^2 = \frac{8\pi G \rho}{3} - \frac{kc^2}{a^2}
This is the C++ forum. Matlab forum is -> that way -> I think.
if you want to solve it over some domain, use one of the built-in ode solvers. you will need to re-arrange the ode into a set of coupled first-order odes. I used ode45 last time I needed to do something similar.