SQRT _ _ _ _ _ _ _ _ _ _ _ _ operator
The sqrt operator returns the square root of its argument.
sqrt(<expression>)
<expression> can be any REDUCE scalar expression.
sqrt(16*a^3);
4*SQRT(A)*A
sqrt(17);
SQRT(17)
on rounded;
sqrt(17);
4.12310562562
off rounded;
sqrt(a*b*c^5*d^3*27);
2
3*SQRT(D)*SQRT(C)*SQRT(B)*SQRT(A)*SQRT(3)*C *D
sqrtchecks its argument for squared factors and removes t hem.
Numeric values for square roots that are not exact integers are given only when rounded is on.
Please note that sqrt(a**2) is given as a, which may be incorrect if a eventually has a negative value. If you are programming a calculation in which this is a concern, you can turn on the precise switch, which causes the absolute value of the square root to be returned.