Manual

Functions and commands 385
companion Returns the companion matrix of a polynomial.
companion(Poly,Var)
Example:
companion(x^2+5x-7,x) returns
compare Compares objects, and returns 1 if type(arg1)<type(arg2) or
if type(arg1)=type(arg2) and arg1<arg2, and returns 0
otherwise.
compare(Object1,Object2)
Example:
compare(1,2) gives 1
complexroot With a polynomial and a real as its two arguments, returns a
matrix. Each row of the matrix contains either a complex root
of the polynomial with its multiplicity or an interval containing
such a root and its multiplicity. The interval defines a (possibly)
rectangular region in the complex plane where a complex
root lies.
With two additional complex numbers as third and fourth
arguments, returns a matrix as described for two arguments,
but only for those roots lying in the rectangular region defined
by the diagonal created by the two complex numbers
complexroot(Poly, Real, [Complex1], [Complex2])
Example:
complexroot(x^3+8, 0.01) returns
This matrix indicates there is 1 complex root at x=–2,
with another root between the two values in the second
row vector and a third root between the two values in the
third row vector.
07
15



2 1
1017 1782 i
1024
-----------------------------------------
1026 1773 i
1024
-----------------------------------------
1
1395 378 i+
512 512 i
--------------------------------------
189 702 i+
256 256 i+
---------------------------------------
1