Function abs
Source pub fn abs<T>(a: Cartesian<T>) -> T
Expand description
Calculate the absolute value of the argument.
§Arguments
a - The argument to apply the function to.
§Example
use mixed_num::Polar;
use mixed_num::complex::*;
let mut x = Cartesian{re:1f32, im:0f32};
assert_eq!{ abs(x), 1f32 };