type/RootOf - Maple Programming Help

# Online Help

###### All Products    Maple    MapleSim

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

type/RootOf

check for a RootOf expression

 Calling Sequence type(expr, RootOf)

Parameters

 expr - any expression

Description

 • An expression is of type RootOf if it is of the form RootOf(x), where x is an algebraic expression.

Examples

 > $\mathrm{type}\left(\mathrm{RootOf}\left({x}^{2}-3,x\right),\mathrm{RootOf}\right)$
 ${\mathrm{true}}$ (1)
 > $\mathrm{type}\left(\mathrm{sin}\left(3x\right),\mathrm{RootOf}\right)$
 ${\mathrm{false}}$ (2)
 > $\mathrm{type}\left(\mathrm{RootOf}\left(x-3,x\right),\mathrm{RootOf}\right)$
 ${\mathrm{false}}$ (3)
 > $\mathrm{type}\left(\mathrm{RootOf}\left({Z}^{7}-2{Z}^{5}+3\right),\mathrm{RootOf}\right)$
 ${\mathrm{true}}$ (4)

 See Also

## Was this information helpful?

 Please add your Comment (Optional) E-mail Address (Optional) What is ? This question helps us to combat spam