This repository provides methods to calculate with complex numbers.
let a = {real: 1.0, imag: -1.0}
// Addition
let b = a + a
// Substraction
let c = b - a
// Multiplication
let d = a * b
// Negation
let e = - a
// Division
let f = a / b
// Abs / length
let g = a.abs()
// Conjugate
let h = a.conjugate()
// Reciprocal
let i = a.reciprocal()
moon add justjoheinz/complex
tested with moon 0.1.20250721 (1581c56 2025-07-21)