type/sqrt - check for a square root
|
Calling Sequence
|
|
type(expr, sqrt)
type(expr, 'sqrt'(domain))
|
|
Parameters
|
|
expr
|
-
|
any expression
|
domain
|
-
|
any valid type domain
|
|
|
|
|
Description
|
|
•
|
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.
|
|
|
Examples
|
|
>
|
|
| (1) |
>
|
|
| (2) |
>
|
|
| (3) |
>
|
|
| (4) |
>
|
|
| (5) |
>
|
|
| (6) |
|
|
Download Help Document
Was this information helpful?