Commit d0a06ca
Merge rust-num#101
101: Add cis function r=cuviper a=rayhem
Adds a [cis function](https://en.wikipedia.org/wiki/Cis_(mathematics)) as a convenient way to construct a complex number with a specific phase/angle. Shorthand for `(Complex::i() * angle).exp()`.
Co-authored-by: Connor Glosser <glosser1@gmail.com>1 file changed
Lines changed: 16 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
161 | 161 | | |
162 | 162 | | |
163 | 163 | | |
| 164 | + | |
| 165 | + | |
| 166 | + | |
| 167 | + | |
| 168 | + | |
| 169 | + | |
| 170 | + | |
164 | 171 | | |
165 | 172 | | |
166 | 173 | | |
| |||
1629 | 1636 | | |
1630 | 1637 | | |
1631 | 1638 | | |
| 1639 | + | |
| 1640 | + | |
| 1641 | + | |
| 1642 | + | |
| 1643 | + | |
| 1644 | + | |
| 1645 | + | |
| 1646 | + | |
| 1647 | + | |
1632 | 1648 | | |
1633 | 1649 | | |
1634 | 1650 | | |
| |||
0 commit comments