1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
/// Allocates a new Complex64 number
///
/// This macro simply calls `Complex64::new(real, imag)`
///
/// **Note:** When using this macro, the `Complex64` type must be imported as well.
///
/// # Examples
///
/// ```
/// use russell_lab::{cpx, Complex64};
///
/// let x = cpx!(1.0, 2.0);
/// let y = cpx!(3.0, 4.0);
/// let z = x + y;
/// assert_eq!(z.re, 4.0);
/// assert_eq!(z.im, 6.0);
/// ```
////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////