Trait dashu_base::math::Inverse
source · Expand description
Compute the multiplicative inverse (aka. reciprocal) of the number.
Examples
assert_eq!(0.1234.inv(), 8.103727714748784);
assert_eq!(f32::INFINITY.inv(), 0f32);
Compute the multiplicative inverse (aka. reciprocal) of the number.
assert_eq!(0.1234.inv(), 8.103727714748784);
assert_eq!(f32::INFINITY.inv(), 0f32);