Lesson 2 of 15
The Friedmann Equation
The Friedmann Equation
The Friedmann equation is the master equation governing how the universe expands. Derived from Einstein's field equations applied to a homogeneous, isotropic universe, it relates the Hubble parameter to the energy content of the cosmos.
The Full Equation
where is the scale factor (normalised so today), and:
- — matter density parameter (dark + baryonic)
- — radiation density parameter
- — dark energy (cosmological constant)
- — curvature term
For the observed flat universe () with negligible radiation today, the standard CDM values are , .
Dimensionless Hubble Parameter
It is convenient to define :
At (today), when (flat).
Deceleration Parameter
The deceleration parameter measures whether the expansion is speeding up or slowing down today:
For , : — the universe is accelerating.
Your Task
Implement the following functions. All constants must be defined inside each function body.
H_over_H0(Omega_m, Omega_r, Omega_Lambda, a)— returns for flat universeH_at_z(H0_km_s_Mpc, Omega_m, Omega_r, Omega_Lambda, z)— returns in km/s/Mpcdeceleration_parameter(Omega_m, Omega_r, Omega_Lambda)— returns
Python runtime loading...
Loading...
Click "Run" to execute your code.