Jump to content

Roots of unity: Difference between revisions

→‎{{header|Ada}}: Remove a variable "J" from the calculation of Factor, since it seems to be wrong.
(added ocaml)
(→‎{{header|Ada}}: Remove a variable "J" from the calculation of Factor, since it seems to be wrong.)
Line 21:
Put(" ");
for K in 1..Root/2 loop
Factor := Exp(Real(K) * 2.0 * J * Ada.Numerics.Pi / Real(Root));
Complex_Io.Put(Item => Factor, Fore => 2, Aft => 4, Exp => 0);
end loop;
Anonymous user
Cookies help us deliver our services. By using our services, you agree to our use of cookies.