pub fn hydrosphere_fraction(volatile_gas_inventory: &f64, planetary_radius: &f64) -> f64 {
    let hydrosphere_fraction =
        0.75 * volatile_gas_inventory / 1000.0 * (EARTH_RADIUS_IN_KM / planetary_radius).powf(2.0);

    match hydrosphere_fraction >= 1.0 {
        true => 1.0,
        false => hydrosphere_fraction,
    }
}
/// This function is Fogg's eq.22. Given the volatile gas inventory and planetary radius of a planet (in Km), this function returns the fraction of the planet covered with water.
This function is Fogg's eq.22. Given the volatile gas inventory and planetary radius of a planet (in Km), this function returns the fraction of the planet covered with water.
This function is Fogg ' s eq . 22 . Given the volatile gas inventory and planetary radius of a planet ( in Km ) this function returns the fraction of the planet covered with water .
pub fn hydrosphere_fraction(volatile_gas_inventory: &f64, planetary_radius: &f64) -> f64 {
    let hydrosphere_fraction =
        0.75 * volatile_gas_inventory / 1000.0 * (EARTH_RADIUS_IN_KM / planetary_radius).powf(2.0);
    match hydrosphere_fraction >= 1.0 {
        true => 1.0,
        false => hydrosphere_fraction,
    }
}
pub fn hydrosphere_fraction ( volatile_gas_inventory : & f64 , planetary_radius : & f64 ) -> f64 { let hydrosphere_fraction = 0.75 * volatile_gas_inventory / 1000.0 * ( EARTH_RADIUS_IN_KM / planetary_radius ) . powf ( 2.0 ) ; match hydrosphere_fraction >= 1.0 { true => 1.0 , false => hydrosphere_fraction , } }
This function is Fogg's eq.22.
This function is Fogg ' s eq . 22 .
volatile_gas_inventory
&f64
planetary_radius
&f64
volatile_gas_inventory
&f64
planetary_radius
&f64