Skip to content

Calculate the age of the universe for various parameters by integrating Friedmann Equation.

Notifications You must be signed in to change notification settings

shu-yusa/universe-age

Repository files navigation

Universe age

This program calculates the age of the universe by integrating Friedmann equation. friedmann_eq.png

The following parameters are fixed.

  • H0 = 72 km/s/Mpc
  • ΩR = 0
  • a0 = 1

Parameter cases

  • M, ΩK, ΩΛ) = (1, 0, 0)
  • M, ΩK, ΩΛ) = (0.3, 0.7, 0)
  • M, ΩK, ΩΛ) = (2, -1, 0)
  • M, ΩK, ΩΛ) = (3, -2, 0)

Requirements

Fortran compiler is required. By using gnuplot, you can output graph for a vs t.

brew install gfortran
brew install gnuplot

Compile and Run

gfortran universe.f90
./a.out
gnuplot < gnu

Results

graph.png

M, ΩK, ΩΛ) Age
(1, 0, 0) 9.07 Gyr
(0.3, 0.7, 0) 11.00 Gyr
(2, -1, 0) 13.11 Gyr
(3, -2, 0) 6.98 Gyr

About

Calculate the age of the universe for various parameters by integrating Friedmann Equation.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published