Complex Numbers in Julia
Implement complex numbers.
exercism fetch julia complex-numbers
A complex number is a number in the form
a + b * i where
b are real and
i^2 = -1.
Assume the programming language you are using does not have an implementation of complex numbers.
The Julia Base implementation of complex numbers can be found here: https://github.com/JuliaLang/julia/blob/master/base/complex.jl.
You can work on the bonus exercises by changing
Implement the exponential function on complex numbers
jm analogous to
im so that
1 + 1jm == ComplexNumber(1, 1).
Submitting Incomplete Solutions
It's possible to submit an incomplete solution so you can see how others have completed the exercise.