type/sqrt
check for a square root
Calling Sequence
Parameters
Description
Examples
type(expr, sqrt)
type(expr, 'sqrt'(domain))
expr
-
any expression
domain
any valid type domain
An expression is of type sqrt if it is a radical and the exponent has a denominator of 2.
An expression is of type sqrt(domain) if it is of type radext(domain) and the exponent has a denominator of 2.
Note that a square root of a product or quotient is not of type sqrt because it evaluates to a product or quotient of square roots.
When used in the second form, it is necessary to enclose sqrt in forward (unevaluation) quotes to prevent the sqrt function from being invoked.
type⁡512,sqrt
true
type⁡512,sqrt⁡integer
type⁡y12,sqrt⁡name
type⁡514,sqrt
false
type⁡x+732,sqrt⁡integer
type⁡x+732,sqrt⁡polynom
See Also
sqrt
type
type/radext
type/radical
Download Help Document