1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
//! Complex number

/// Complex number
///
///<a href="https://en.wikipedia.org/wiki/Complex_number">https://en.wikipedia.org/wiki/Complex_numberr</a>
pub trait Complex
{
    /// Returns the complex conjuagte
    /// conj(self) = Re(self) - i Im(self)
    fn conj(self: Self) -> Self;

    fn arg(self: Self) -> Self;
}