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