home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Simtel MSDOS - Coast to Coast
/
simteldosarchivecoasttocoast2.iso
/
calculat
/
sm30a.zip
/
ROOT.(X)
< prev
next >
Wrap
Text File
|
1993-10-16
|
212b
|
7 lines
# root(x,n) gives all of roots of x in n order. The first of root
# is the P.V.
# e.g. root(4,2) gives [2,-2] # square root of 4
# See also: sqrt
root(x_, n_) := [list(x^(1/n)*e^(2*k*pi*i/n), k,0,n-1,1)]