A complex number library, a part of LunaFlow.
No dependents
pub(all) struct Complex { re : Double im : Double}
impl Conjugate for Complex
fn conjugate(self : Complex) -> Complex
impl Inverse for Complex
fn inv(self : Complex) -> Complex
impl One for Complex
fn one() -> Complex
impl Zero for Complex
fn zero() -> Complex
impl Add for Complex
fn op_add(self : Complex, other : Complex) -> Complex
impl Div for Complex
fn op_div(self : Complex, other : Complex) -> Complex
impl Eq for Complex
fn op_equal(Complex, Complex) -> Bool
impl Mul for Complex
fn op_mul(self : Complex, other : Complex) -> Complex
impl Neg for Complex
fn op_neg(self : Complex) -> Complex
impl Show for Complex
fn output(s : Complex, l : Logger) -> Unit
fn to_string(s : Complex) -> String
impl Sub for Complex
fn op_sub(self : Complex, other : Complex) -> Complex
fn Complex::abs(self : Complex) -> Double
fn Complex::abs_log(self : Complex) -> Double
fn Complex::abs_sqr(self : Complex) -> Double
fn Complex::acos(self : Complex) -> Complex
fn Complex::acos_real(x : Double) -> Complex
fn Complex::acosh(self : Complex) -> Complex
fn Complex::acosh_real(x : Double) -> Complex
fn Complex::acot(self : Complex) -> Complex
fn Complex::acoth(self : Complex) -> Complex
fn Complex::acsc(self : Complex) -> Complex
fn Complex::acsc_real(x : Double) -> Complex
fn Complex::acsch(self : Complex) -> Complex
fn Complex::arg(self : Complex) -> Double
fn Complex::asec(self : Complex) -> Complex
fn Complex::asec_real(x : Double) -> Complex
fn Complex::asech(self : Complex) -> Complex
fn Complex::asin(self : Complex) -> Complex
fn Complex::asin_real(x : Double) -> Complex
fn Complex::asinh(self : Complex) -> Complex
fn Complex::atan(self : Complex) -> Complex
fn Complex::atanh(self : Complex) -> Complex
fn Complex::atanh_real(x : Double) -> Complex
fn Complex::cos(self : Complex) -> Complex
fn Complex::cosh(self : Complex) -> Complex
fn Complex::cot(self : Complex) -> Complex
fn Complex::coth(self : Complex) -> Complex
fn Complex::csc(self : Complex) -> Complex
fn Complex::csch(self : Complex) -> Complex
fn Complex::exp(self : Complex) -> Complex
fn Complex::log(self : Complex) -> Complex
fn Complex::log_10(self : Complex) -> Complex
fn Complex::log_b(self : Complex, b : Complex) -> Complex
fn Complex::native_pack(re : Double, im : Double, arr : Array[Double], offset : Int) -> Unit
fn Complex::new(re : Double, im : Double) -> Complex
fn Complex::op_bin_im(self : Complex, other : Double, f : (Complex, Complex) -> Complex) -> Complex
fn Complex::op_bin_re(self : Complex, other : Double, f : (Complex, Complex) -> Complex) -> Complex
fn Complex::pack(self : Complex, arr : Array[Double], offset : Int) -> Unit
fn Complex::polar(r : Double, theta : Double) -> Complex
fn Complex::pow(self : Complex, other : Complex) -> Complex
fn Complex::pow_real(self : Complex, other : Double) -> Complex
fn Complex::sec(self : Complex) -> Complex
fn Complex::sech(self : Complex) -> Complex
fn Complex::set(self : Complex, re : Double, im : Double) -> Unit
fn Complex::set_im(self : Complex, im : Double) -> Unit
fn Complex::set_re(self : Complex, re : Double) -> Unit
fn Complex::sin(self : Complex) -> Complex
fn Complex::sinh(self : Complex) -> Complex
fn Complex::sqrt(self : Complex) -> Complex
fn Complex::sqrt_real(self : Double) -> Complex
fn Complex::tan(self : Complex) -> Complex
fn Complex::tanh(self : Complex) -> Complex
Install
Powered by MoonBit
© 2026 mooncakes.io