pub fn range(s: &[f64]) -> (f64, f64) {
    let mut min = f64::INFINITY;
    let mut max = f64::NEG_INFINITY;
    for &v in s {
        min = min.min(v);
        max = max.max(v);
    }
    (min, max)
}
/// Given a slice of numbers, return the minimum and maximum values
Given a slice of numbers, return the minimum and maximum values
Given a slice of numbers return the minimum and maximum values
pub fn range(s: &[f64]) -> (f64, f64) {
    let mut min = f64::INFINITY;
    let mut max = f64::NEG_INFINITY;
    for &v in s {
        min = min.min(v);
        max = max.max(v);
    }
    (min, max)
}
pub fn range ( s : & [ f64 ] ) -> ( f64 , f64 ) { let mut min = f64 :: INFINITY ; let mut max = f64 :: NEG_INFINITY ; for & v in s { min = min . min ( v ) ; max = max . max ( v ) ; } ( min , max ) }
Given a slice of numbers, return the minimum and maximum values
Given a slice of numbers return the minimum and maximum values
s
&[f64]
s
&[f64]