File r37/lisp/csl/html/r37_0257.html artifact 0dc45d48ac part of check-in 3c4d7b69af



<A NAME=SEC>

<TITLE>SEC</TITLE></A>
<b><a href=r37_idx.html>INDEX</a></b><p><p>



<B>SEC</B> _ _ _  _ _ _  _ _ _  _ _ _ <B>operator</B><P>
<P>
 
The <em>sec</em> operator returns the secant of its argument. 
<P>
<P>
 <P> <H3> 
syntax: </H3>
<em>sec</em>(&lt;expression&gt;) or <em>sec</em> &lt;simple\_expression&gt; 
<P>
<P>
<P>
&lt;expression&gt; is any valid scalar REDUCE expression, 
&lt;simple\_expression&gt; is a single identifier or begins with a prefix 
operator name. 
<P>
<P>
 <P> <H3> 
examples: </H3>
<P><PRE><TT>


sec abc; 

  SEC(ABC) 



sec(pi); 

  -1 



sec 4; 

  SEC(4) 



on rounded; 


sec(4); 

  - 1.52988565647 



sec log 5; 

  - 25.8852966005

</TT></PRE><P><em>sec</em>returns a numeric value only if 
<A HREF=r37_0330.html>rounded</A> is on. Then the 
secant is calculated to the current degree of floating point precision. 
<P>
<P>
<P>


REDUCE Historical
REDUCE Sourceforge Project | Historical SVN Repository | GitHub Mirror | SourceHut Mirror | NotABug Mirror | Chisel Mirror | Chisel RSS ]