pub fn fast_power(base: f64, exponent: i64) -> Result<f64, Error>
Exponentiation by squaring. Returns Err(Error::InvalidInput) when base is zero and exponent is negative. By convention, 0^0 returns 1.0.
Err(Error::InvalidInput)
base
exponent
0^0
1.0