File r37/lisp/csl/html/r37_0095.html artifact ae0c83c431 part of check-in 3c4d7b69af



<A NAME=NORM>

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



<B>NORM</B> _ _ _  _ _ _  _ _ _  _ _ _ <B>operator</B><P>
<P>
 
 <P>
<P>
 <P> <H3> 
syntax: </H3>
<em>norm</em>(&lt;expression&gt;) 
<P>
<P>
<P>
If <em>rounded</em> is on, and the argument is a real number, &lt;norm&gt; 
returns its absolute value. If <em>complex</em> is also on, &lt;norm&gt; 
returns the square root of the sum of squares of the real and imaginary 
parts of the argument. In all other cases, a result is returned in 
terms of the original operator. 
<P>
<P>
 <P> <H3> 
examples: </H3>
<P><PRE><TT>
norm (-2); 

  NORM(-2) 


on rounded;

ws; 

  2.0 


norm(3+4i); 

  NORM(4*I+3) 


on complex;

ws; 

  5.0

</TT></PRE><P>

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