Roots of unity: Difference between revisions
→{{header|Frink}}
Line 515:
=={{header|Frink}}==
Calculates the angles in degrees, since Frink will use rational arithmetic (exact)
<lang Frink>
roots[n] :=
{
a = makeArray[[n], 0]
alpha =
theta = 0
for k = 0 to length[a] - 1
{
|