Artifact 91f3b9660db6a37ca5c581bdafe83fdcc6781f06cf336d16a5afb3d883e9f3f6:
- Executable file
r37/lisp/csl/html/r37_0261.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: 1329) [annotate] [blame] [check-ins using] [more...]
<A NAME=TAN> <TITLE>TAN</TITLE></A> <b><a href=r37_idx.html>INDEX</a></b><p><p> <B>TAN</B> _ _ _ _ _ _ _ _ _ _ _ _ <B>operator</B><P> <P> The <em>tan</em> operator returns the tangent of its argument. <P> <H3> syntax: </H3> <P> <P> <em>tan</em>(<expression>) or <em>tan</em> <simple\_expression> <P> <P> <P> <P> <expression> is any valid scalar REDUCE expression, <simple\_expression> is a single identifier or begins with a prefix operator name. <P> <P> <P> <H3> examples: </H3> <P><PRE><TT> tan a; TAN(A) tan(pi/5); PI TAN(--) 5 on rounded; tan(pi/5); 0.726542528005 </TT></PRE><P><em>tan</em>returns a numeric value only if <em>rounded</em> is on . Then the tangent is calculated to the current degree of floating point accuracy. <P> <P> When <A HREF=r37_0330.html>rounded</A> is on, no check is made to see if the argument of <em>tan</em> is a multiple of pi/2, for which the tangent goes to positive or negative infinity. (Of course, since REDUCE uses a fixed-point representation of pi/2, it produces a large but not infinite number.) You need to make a check for multiples of pi/2 in any program you use that might possibly ask for the tangent of such a quantity. <P> <P> <P>