Anonymous user
Roots of unity: Difference between revisions
→{{header|Rust}}
(→{{header|Rust}}: cleanup) |
|||
Line 1,631:
=={{header|Rust}}==
Here we demonstrate initialization from polar complex coordinate, radius 1, e^πi/n, and raising the resulting complex number to the power 2k for k in 0..n-1, which generates
<lang C>use num::Complex;
fn main() {
|