Complex-class
complex
The Origin C complex class implements a complex number data type containing both a Real and an Imaginary component.
EX1
void complex_complex_ex1() { complex cc(4.5, 7.8); out_double("Real part = ", cc.m_re); //Result is "Real part = 4.5" out_double("Imaginary part = ", cc.m_im); //Result is "Imaginary part = 7.8" cc = cc.Conjugate(); out_double("Real part = ", cc.m_re); //Result is "Real part = 4.5" out_double("Imaginary part = ", cc.m_im); //Result is "Imaginary part = -7.8" }
origin.h