Jump to content

Roots of unity: Difference between revisions

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 = 2pi360/n radiansdegrees
theta = 0 radiansdegrees
for k = 0 to length[a] - 1
{
357

edits

Cookies help us deliver our services. By using our services, you agree to our use of cookies.