home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Simtel MSDOS - Coast to Coast
/
simteldosarchivecoasttocoast2.iso
/
calculat
/
sm30a.zip
/
FACTOR.(X)
< prev
next >
Wrap
Text File
|
1993-10-06
|
182b
|
5 lines
# factor(poly, x) factors poly with respect to x
# e.g. factor(x^4-4, x) gives (-2+x)(2+x)
factor(y_, x_) := block(root:=right(solve(y=0,x)), prod(x-root[j], j,1,order(y,x),1))