How do I work with complex numbers?
Algosim fully supports complex numbers. The pre-defined symbol for the imaginary unit is i.
Examples:
(2 + i) ⋅ (3 − i) ⋅ (1 − i)
8 − 6⋅i
(5 + i) / (1 − i)
2 + 3⋅i
arcsinh(1 + i)
1.06127506191 + 0.666239432493⋅i
arcsin(2)
1.57079632679 − 1.31695789692⋅i
arg(ans)
−0.697721842493
6⋅exp(π/3⋅i)
3 + 5.19615242271⋅i