pub trait Inverse {
type Output;
// Required method
fn inv(self) -> Self::Output;
}
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);