Roots of unity: Difference between revisions

(cleanup, get rid of my latex attempt at math)
Line 1,631:
 
=={{header|Rust}}==
Here we demonstrate initialization from polar complex coordinate, radius 1, e^1πi/n, and raising itthe resulting complex number to the power 2k for k in 0..n-1, towhich generategenerates the roots. This will require adding the num crate to one's rust project, typically in Cargo.toml <i>[dependencies] \n num="0.2.0";</i>
<lang C>use num::Complex;
fn main() {
Anonymous user