How useful would complex numbers be in a programming language?
There are eight basic arithmetic operations in my language, more complex operations are in a separate mathematic library, so it wouldn't be a fully fledged system for using complex numbers.
- addition
- subtraction
- multiplication
- division
- exponentiation
- additive inverse
- multiplicative inverse
- absolute value
So far my language has only three data types, bit (b), integer (n), and fraction (n,d), but I've been wondering whether it would be useful to add a complex (a,bi) data type too.