compute_distance_modulus
Computes theory distance modulus μ(z) for a chosen w0waCDM cosmology and redshift grid, writing a CSV for Hubble-diagram overlays or cosmology comparisons.
Instructions
Theory distance modulus mu(z) = 5 log10(D_L/10pc) for a given cosmology (w0waCDM, curvature).
Use for theory curves to overlay on a Hubble diagram, or to quantify how much two
cosmologies differ in mu (the CSV includes mu minus flat LCDM Om=0.3, offset-free at
low z). Radiation is neglected (< 1e-4 mag for z < 3). Cross-checked against
astropy.cosmology in the tests.
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"output_dir": "<output_dir>"
},
"name": "compute_distance_modulus"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| H0 | No | H0 [km/s/Mpc]; only shifts mu by a constant. | |
| Ok | No | Curvature Omega_k (0 = flat). | |
| Om | No | Matter density Omega_m. | |
| w0 | No | Dark-energy w0 (CPL). | |
| wa | No | Dark-energy wa (CPL, w = w0 + wa(1-a)). | |
| z_max | No | Highest redshift. | |
| z_min | No | Lowest redshift. | |
| n_points | No | Number of log-spaced redshifts. | |
| output_dir | Yes | Directory for the CSV. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| files | Yes | ||
| status | Yes | ||
| message | Yes | ||
| metadata | Yes |