pub fn cpow(c: Complex64, exponent: u64) -> Complex64 {
    match exponent {
        0 => Complex64::new(1.0, 0.0),
        1 => c,
        2 => c * c,
        _ => {
            let mut accum: Complex64 = c;
            for _ in 1..exponent {
                accum *= c;
            }
            accum
        }
    }
}
/// Implements pow for complex numbers.
Implements pow for complex numbers.
Implements pow for complex numbers .
pub fn cpow(c: Complex64, exponent: u64) -> Complex64 {
    match exponent {
        0 => Complex64::new(1.0, 0.0),
        1 => c,
        2 => c * c,
        _ => {
            let mut accum: Complex64 = c;
            for _ in 1..exponent {
                accum *= c;
            }
            accum
        }
    }
}
pub fn cpow ( c : Complex64 , exponent : u64 ) -> Complex64 { match exponent { 0 => Complex64 :: new ( 1.0 , 0.0 ) , 1 => c , 2 => c * c , _ => { let mut accum : Complex64 = c ; for _ in 1 .. exponent { accum *= c ; } accum } } }
Implements pow for complex numbers.
Implements pow for complex numbers .
c
Complex64
exponent
u64