type/specified_rootof - Maple Programming Help

Online Help

All Products    Maple    MapleSim


Home : Support : Online Help : Programming : Data Types : Type Checking : Types : type/specified_rootof

type/specified_rootof

check for a RootOf data structure that is a specific root of an expression

 

Calling Sequence

Parameters

Description

Examples

Calling Sequence

type(expr, specified_rootof)

Parameters

expr

-

any expression

Description

• 

The type(expr, specified_rootof) function returns true if expr is a specific root of an expression that uses a RootOf data structure. Otherwise, false is returned.

  

This function recognizes two forms of roots.

1.  RootOf(expr, index = n) where expr is an algebraic expression, and n is a positive integer

 

Specifies the roots of a rational polynomial.

2.  RootOf(expr, c) where expr is an algebraic expression, and c is a constant

 

Specifies the closest root to the point c.

  

If extra arguments are included in the call to type(expr, specified_rootof), they are ignored.

Examples

typeRootOfx24x+71,specified_rootof

false

(1)

typeRootOfx24x+71,index=1,specified_rootof

true

(2)

typeRootOfx24x+7,label=A,specified_rootof

false

(3)

typeRootOfx24x+7,2.+1.732050808I,specified_rootof

true

(4)

See Also

RootOf

type

type/abstract_rootof

type/algext

type/algnum

type/RootOf