Artifact 6352068dba66504acdab1f7bbae1488d77289b19aa6d9bfa2a989e8f2755de8c:



<A NAME=SIGN>

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



<B>SIGN</B> _ _ _  _ _ _  _ _ _  _ _ _ <B>operator</B><P>
<P>
 
<P>
<P>
 <P> <H3> 
syntax: </H3>
<em>sign</em>&lt;expression&gt; 
<P>
<P>
<P>
<em>sign</em>tries to evaluate the sign of its argument. If this 
is possible <em>sign</em> returns one of 1, 0 or -1. Otherwise, the result 
is the original form or a simplified variant. 
<P>
<P>
 <P> <H3> 
examples: </H3>
<P><PRE><TT>
        sign(-5) 

  -1


        sign(-a^2*b) 

  -SIGN(B)

</TT></PRE><P>Even powers of formal expressions are assumed to be positive only 
as long 
as the switch 
<A HREF=r37_0274.html>complex</A> is off. 
<P>
<P>
<P>


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