RootOf indexed - Maple Help
For the best experience, we recommend viewing online help using Google Chrome or Microsoft Edge.

Online Help

All Products    Maple    MapleSim


Indexed RootOf

 

Calling Sequence

Parameters

Description

Examples

Calling Sequence

RootOf(expr, x, index=i)

Parameters

expr

-

algebraic expression or equation

x

-

variable name

i

-

integer

Description

• 

An index can be specified to select a particular root of an equation. If the index i is an integer, then the RootOf represents the ith root of the equation in an order described below.

• 

Indices are understood by Maple in the following cases:

1. 

The equation expr is a polynomial in x whose coefficients can be numerically evaluated (see complexcons). The RootOf represents the ith complex root (multiplicities taken into account) of the polynomial. The roots are ordered counter-clockwise, with ties broken by increasing modulus. The first root is chosen as follows:

– 

roots with the smallest argument in absolute value are selected,

– 

roots with positive argument, if any, are then chosen,

– 

the root with the smallest modulus amongst the remaining roots is the root number 1.

  

If the RootOf represents an nth root, that is, if expr is a binomial of degree n, then the index i corresponds to ⅇ2Ii1πnexpr1n where expr1n is the principal branch of the nth root function.

  

The default ordering may be changed by over-writing the function called `RootOf/sort`. The argument of this function is a list of complexcons and the result must be the list of sorted elements. If the default ordering is modified, some functions may not work as expected (convert/radical for instance). The evala function will still behave as expected.

2. 

The equation is a polynomial in x with polynomial coefficients in a set of variables X. In this case, the RootOf defines an algebraic function. The definition of the function which is identified by the index is inherited from the ordering of the roots in the constant case above: For each complex number c, the value of RootOf(expr(X), index=i) at c is given by RootOf(expr(c), index=i).

Examples

r1RootOfx5+x+3,x,index=1

r1RootOf_Z5+_Z+3,index=1

(1)

r2RootOfx5+x+3,x,index=2

r2RootOf_Z5+_Z+3,index=2

(2)

evalfr1,evalfr2

1.041879540+0.8228703381I,−0.4753807567+1.129701725I

(3)

aliasα=RootOfx4+x2+2,x,index=2

α

(4)

factorx6+7,α

x3+2α2+1x3+2α2+1

(5)

SSum1RootOfx5+x+3,x,index=i5,i=1..5

Si=151RootOf_Z5+_Z+3,index=i5

(6)

evalaSimplifyvalueS

406243

(7)

R1RootOfx3y,x,index=1

R1RootOf_Z3y,index=1

(8)

R2RootOfx3y,x,index=2

R2RootOf_Z3y,index=2

(9)

evalaSimplifydiffR1R2,y

0

(10)

consevalf@unapplyR1R2,y

cons`@`evalf,yRootOf_Z3y,index=1RootOf_Z3y,index=2

(11)

cons1

−0.50000000000.8660254038I

(12)

cons1

−0.50000000000.8660254038I

(13)

See Also

alias

allvalues

convert/radical

evala

RootOf

type/algfun

value