cosmocalc.rs

A library for computing quantities in cosmology in the Rust programming language

Features

Cosmological distance calculations

rust let cosmology = FLRWCosmology::two_component(0.286, 0.714, 69.6); assert!(cosmology.radial_comoving_distance(2.0).0 > 5273.); assert!(cosmology.radial_comoving_distance(2.0).0 < 5274.);

Developers

Dev setup

This project requires Rust. Once installed:

cargo build cargo test