Last active
January 7, 2019 14:40
-
-
Save andrevidela/7b21cd3de0e0a1597ad9e46fc805dc6a to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
let i = Complex(real: 0.0, imm: 1.0) | |
let one = Complex(real: 1.0, imm: 0.0) | |
let other = Complex(real: Double.pi, imm: sqrt(2.0)) | |
i * i == (-1) ◊ one | |
Complex.multId * i == i | |
other.magnitude | |
17.3 ◊ other |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment