Create a new Complex number: real + imag*i
Create a new Complex number: real + imag*i
the type to represent the complex number with, eg) UInt, SInt, Fixed
val myNum = Complex(UInt(3), UInt(1))
flag to indicate if using four multiplications or three, default is false Four mult calculates:
flag to indicate if using four multiplications or three, default is false Four mult calculates:
(a + bi)*(c + di) = (ac - bd) + (ad + bc)i
Three mult calculates:
ac_p_ad = a * (c + d), ad_p_bd = (a + b) * d, bc_m_ac = (b - a) * c (ac_p_ad - ad_p_bd) + (ac_p_ad + bc_m_ac)i
Representation for complex numbers