/// Orbital radius is in AU, eccentricity is unitless, and the stellar luminosity ratio is with respect to the sun.
/// The value returned is the mass at which the planet begins to accrete gas as well as dust, and is in units of solar masses.

Orbital radius is in AU, eccentricity is unitless, and the stellar luminosity ratio is with respect to the sun.
The value returned is the mass at which the planet begins to accrete gas as well as dust, and is in units of solar masses.
Orbital radius is in AU eccentricity is unitless and the stellar luminosity ratio is with respect to the sun . The value returned is the mass at which the planet begins to accrete gas as well as dust and is in units of solar masses .
pub fn critical_limit(
    b: &f64,
    orbital_radius: &f64,
    eccentricity: &f64,
    stellar_luminosity_ratio: &f64,
) -> f64 {
    let perihelion_dist = orbital_radius - orbital_radius * eccentricity;
    let temp = perihelion_dist * stellar_luminosity_ratio.sqrt();
    b * temp.powf(-0.75)
}
pub fn critical_limit ( b : & f64 , orbital_radius : & f64 , eccentricity : & f64 , stellar_luminosity_ratio : & f64 , ) -> f64 { let perihelion_dist = orbital_radius - orbital_radius * eccentricity ; let temp = perihelion_dist * stellar_luminosity_ratio . sqrt ( ) ; b * temp . powf ( - 0.75 ) }
Orbital radius is in AU, eccentricity is unitless, and the stellar luminosity ratio is with respect to the sun.
Orbital radius is in AU eccentricity is unitless and the stellar luminosity ratio is with respect to the sun .
b
&f64
orbital_radius
&f64
eccentricity
&f64
stellar_luminosity_ratio
&f64