Roots of unity: Difference between revisions

Add Factor
(Add Factor)
Line 417:
</lang>
Note: Adapted from Qbasic version. π is the predefined constant Greek Pi.
 
=={{header|Factor}}==
<lang factor>USING: math.functions prettyprint ;
 
1 3 roots .</lang>
{{out}}
<pre>
{
1.0
C{ -0.4999999999999998 0.8660254037844387 }
C{ -0.5000000000000003 -0.8660254037844384 }
}
</pre>
 
=={{header|Forth}}==
1,808

edits