Sha256: 518828cab284b1132fe7bbd83f9678c8be671bbf07af8df848b3a8752869539f

Contents?: true

Size: 871 Bytes

Versions: 169

Compression:

Stored size: 871 Bytes

Contents

# Complex Numbers

A complex number is a number in the form `a + b * i` where `a` and `b` are real and `i` satisfies `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 `@test_skip` to `@test`.

## Bonus A
Implement the exponential function on complex numbers `exp(::ComplexNumber)`.

## Bonus B
Implement `jm` analogous to `im` so that `1 + 1jm == ComplexNumber(1, 1)`.

## Source

Wikipedia [https://en.wikipedia.org/wiki/Complex_number](https://en.wikipedia.org/wiki/Complex_number)


## Submitting Incomplete Solutions
It's possible to submit an incomplete solution so you can see how others have completed the exercise.

Version data entries

169 entries across 169 versions & 1 rubygems

Version Path
trackler-2.2.1.180 tracks/julia/exercises/complex-numbers/README.md
trackler-2.2.1.179 tracks/julia/exercises/complex-numbers/README.md
trackler-2.2.1.178 tracks/julia/exercises/complex-numbers/README.md
trackler-2.2.1.177 tracks/julia/exercises/complex-numbers/README.md
trackler-2.2.1.176 tracks/julia/exercises/complex-numbers/README.md
trackler-2.2.1.175 tracks/julia/exercises/complex-numbers/README.md
trackler-2.2.1.174 tracks/julia/exercises/complex-numbers/README.md
trackler-2.2.1.173 tracks/julia/exercises/complex-numbers/README.md
trackler-2.2.1.172 tracks/julia/exercises/complex-numbers/README.md
trackler-2.2.1.171 tracks/julia/exercises/complex-numbers/README.md
trackler-2.2.1.170 tracks/julia/exercises/complex-numbers/README.md
trackler-2.2.1.169 tracks/julia/exercises/complex-numbers/README.md
trackler-2.2.1.167 tracks/julia/exercises/complex-numbers/README.md
trackler-2.2.1.166 tracks/julia/exercises/complex-numbers/README.md
trackler-2.2.1.165 tracks/julia/exercises/complex-numbers/README.md
trackler-2.2.1.164 tracks/julia/exercises/complex-numbers/README.md
trackler-2.2.1.163 tracks/julia/exercises/complex-numbers/README.md
trackler-2.2.1.162 tracks/julia/exercises/complex-numbers/README.md
trackler-2.2.1.161 tracks/julia/exercises/complex-numbers/README.md
trackler-2.2.1.160 tracks/julia/exercises/complex-numbers/README.md