[][src]Function divisors::approximated_sqrt

pub fn approximated_sqrt<T: Num>(n: T) -> T

Return a number near and greather then sqrt(n).

Example

fn main() {
    let n: u32 = 63;
    let n_sqrt  = divisors::approximated_sqrt(n);
    assert_eq!(n_sqrt, 8);
}