bilby.gw.conversion.mass_2_and_chirp_mass_to_mass_ratio
- bilby.gw.conversion.mass_2_and_chirp_mass_to_mass_ratio(mass_2, chirp_mass)[source]
Calculate mass ratio from mass_1 and chirp_mass.
This involves solving mc = m2 * (1/q)**(3/5) / (1 + (1/q))**(1/5).
- Parameters:
- mass_2: float
Mass of the lighter object
- chirp_mass: float
Chirp mass of the binary
- Returns:
- mass_ratio: float
Mass ratio of the binary