Artifact 60ddc9c4507c545c6cd962a8f36b5409313860612a2c1564de53b48039e537b0:
- Executable file
r37/lisp/csl/html/r37_0106.html
— part of check-in
[f2fda60abd]
at
2011-09-02 18:13:33
on branch master
— Some historical releases purely for archival purposes
git-svn-id: https://svn.code.sf.net/p/reduce-algebra/code/trunk/historical@1375 2bfe0521-f11c-4a00-b80e-6202646ff360 (user: arthurcnorman@users.sourceforge.net, size: 1296) [annotate] [blame] [check-ins using] [more...]
<A NAME=SQRT> <TITLE>SQRT</TITLE></A> <b><a href=r37_idx.html>INDEX</a></b><p><p> <B>SQRT</B> _ _ _ _ _ _ _ _ _ _ _ _ <B>operator</B><P> <P> <P> <P> The <em>sqrt</em> operator returns the square root of its argument. <P> <H3> syntax: </H3> <P> <P> <em>sqrt</em>(<expression>) <P> <P> <P> <expression> can be any REDUCE scalar expression. <P> <P> <P> <H3> examples: </H3> <P><PRE><TT> 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 </TT></PRE><P><em>sqrt</em>checks its argument for squared factors and removes t hem. <P> <P> Numeric values for square roots that are not exact integers are given only when <A HREF=r37_0330.html>rounded</A> is on. <P> <P> Please note that <em>sqrt(a**2)</em> is given as <em>a</em>, which may be incorrect if <em>a</em> eventually has a negative value. If you are programming a calculation in which this is a concern, you can turn on the <A HREF=r37_0317.html>precise</A> switch, which causes the absolute value of the square root to be returned. <P> <P> <P>