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.119 tracks/julia/exercises/complex-numbers/README.md
trackler-2.2.1.118 tracks/julia/exercises/complex-numbers/README.md
trackler-2.2.1.117 tracks/julia/exercises/complex-numbers/README.md
trackler-2.2.1.116 tracks/julia/exercises/complex-numbers/README.md
trackler-2.2.1.115 tracks/julia/exercises/complex-numbers/README.md
trackler-2.2.1.114 tracks/julia/exercises/complex-numbers/README.md
trackler-2.2.1.113 tracks/julia/exercises/complex-numbers/README.md
trackler-2.2.1.111 tracks/julia/exercises/complex-numbers/README.md
trackler-2.2.1.110 tracks/julia/exercises/complex-numbers/README.md
trackler-2.2.1.109 tracks/julia/exercises/complex-numbers/README.md
trackler-2.2.1.108 tracks/julia/exercises/complex-numbers/README.md
trackler-2.2.1.107 tracks/julia/exercises/complex-numbers/README.md
trackler-2.2.1.106 tracks/julia/exercises/complex-numbers/README.md
trackler-2.2.1.105 tracks/julia/exercises/complex-numbers/README.md
trackler-2.2.1.104 tracks/julia/exercises/complex-numbers/README.md
trackler-2.2.1.103 tracks/julia/exercises/complex-numbers/README.md
trackler-2.2.1.102 tracks/julia/exercises/complex-numbers/README.md
trackler-2.2.1.101 tracks/julia/exercises/complex-numbers/README.md
trackler-2.2.1.100 tracks/julia/exercises/complex-numbers/README.md
trackler-2.2.1.99 tracks/julia/exercises/complex-numbers/README.md