Wolfram Function Repository
Instant-use add-on functions for the Wolfram Language
Function Repository Resource:
Compute the comoving distance as a closed-form function of redshift using a parabolic expansion model
ResourceFunction["ComovingDistance"][z] gives the comoving distance corresponding to the redshift z using a parabolic expansion model. |
Compute a comoving distance from a redshift:
| In[1]:= |
| Out[1]= |
Compute the comoving distance to the surface of last scattering (in Gpc):
| In[2]:= |
| Out[2]= |
Predict the distance moduli of SN 1997ff (redshift equal to 1.755):
| In[3]:= | ![]() |
| Out[4]= |
Define a helper function for computing an object's distance modulus μ as a function of redshift z:
| In[5]:= | ![]() |
| Out[6]= |
Create a Hubble diagram of observed distance moduli against the function predictions:
| In[7]:= | ![]() |
| Out[8]= | ![]() |
ComovingDistance is an approximate inverse for the "Redshift" function in UniverseModelData:
| In[9]:= |
| Out[9]= |
Wolfram Language 13.0 (December 2021) or above
This work is licensed under a Creative Commons Attribution 4.0 International License