This is just a lot of block definitions for algebra with complex numbers, all in one place for ease of access. To use, each number you represent needs two variables, one for the real component and one for the imaginary component. Every block returns its answer as return.real +return.imag*i If you use, please give credit. You don't have to, as all of these formulas can be found with a bit of research.
Functions included: +,-,*,/,^(yes for complex base and exponent, which includes e^i*pi),sin(z),cos(z),tan(z)(yes with z as complex number, in radians), Γ(z) (or gamma(z), which is just (z-1)!), ln(z), log_a(b) with both a,b as complex numbers, arg(z),abs(z). If there are any more functions or operations you might want me to add let me know.