HP Prime Graphing NW280AAABA manual Companion Returns the companion matrix of a polynomial

Models: Prime Graphing NW280AAABA

1 616
Download 616 pages 24.49 Kb
Page 391
Image 391

companion Returns the companion matrix of a polynomial.

companion(Poly,Var)

Example:

companion(x^2+5x-7,x)returns 0 7 ⎟ ⎝ 1 5

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

2

1017 1782 i 1026 1773 i

---------------------------------------- -----------------------------------------

1024 1024

1395 + 378 i 189 + 702 i

---------------------------------------------------------------------------

512 512 i 256 + 256 i

1

1

1

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.

Functions and commands

385

Page 391
Image 391
HP Prime Graphing NW280AAABA manual Companion Returns the companion matrix of a polynomial, Complexrootx3+8, 0.01 returns