Complex numbers
I think that your library needs to get a complex numbers.
Actions with complex numbers
You can implement these basic actions with complex numbers:
- Addition
- Subtraction
- Multiplication
- Division
- Raise to the power
- Root
- Some trigonometrical functions
Useful references