Wrappers

Wrappers

CosmologyWrapper.jl

comoving_distance(z)

Calculate the comoving distance (in units of Mpc) to the redshift z.

Usage:

julia> comoving_distance(1)
3371.509961954628 Mpc

julia> comoving_distance(10)
9689.514711746533 Mpc
source
age(z)

Calculate the age of the universe (in units of Gyr) to the redshift z.

Usage:

julia> age(1)
5.918077173774152 Gyr

julia> age(10)
0.4785005773464139 Gyr
source
frequency(z)

Calculate the frequency of the 21 cm line of Hydrogen at the redshift z.

Usage:

julia> frequency(1)
710.202875885 MHz

julia> frequency(10)
129.12779561545454 MHz
source
redshift(ν)

Calculate the redshift from which the emission originates if the 21 cm line is observed at the frequency ν.

Usage:

julia> redshift(100u"MHz")
13.2040575177

julia> redshift(200u"MHz")
6.10202875885
source

GSLWrapper.jl

BPJSpec.GSLWrapper.YFunction.
Y(l, m, θ, ϕ)

The spherical harmonic function (using the Condon-Shortley phase convention).

Usage:

julia> using BPJSpec

julia> BPJSpec.Y(0, 0, 1, 2)
0.28209479177387814 + 0.0im

julia> 1/sqrt(4π)
0.28209479177387814
source

FastTransformsWrapper.jl