macro_rules! ab {
($co:expr, $ab:expr) => { ... };
}Expand description
Macro for creating absurd numbers with complex and absurd parts
ยงExamples
let a1 = ab!(co!(1.0, 0.0), co!(2.0, 0.0)); // 1 + 2z
let a2 = ab!(co!(0.0, 1.0), co!(1.0, 0.0)); // i + z
let a3 = ab_real!(1.0, 2.0); // 1 + 2z (shorthand for reals)