Examples
Cosmos.jl ships with a handful of runnable scripts under the repository examples/ directory. Each script demonstrates how one of the provided helpers behaves.
examples/distance-conversions.jlshows how to buildDistanceComoving, convert it intoRedshift/ScaleFactor, and move between distance measures without re-specifying the cosmology.examples/time-conversions.jlwalks throughTimeLookback/TimeConformaland how to passRedshift/ScaleFactorinto the constructors.examples/custom-cosmology.jlcreates a non-Planck cosmology, highlights optional baryon handling, and prints the derived parameters.
To run an example:
julia examples/distance-conversions.jlEach script is stand-alone and includes explanatory comments on the conversions being performed.