File r37/lisp/csl/html/r37_0274.html artifact 620fa5f14e part of check-in b7c3de82ef



<A NAME=COMPLEX>

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



<B>COMPLEX</B> _ _ _  _ _ _  _ _ _  _ _ _ <B>switch</B><P>
<P>
 
 <P>
<P>
When the <em>complex</em> switch is on, full complex arithmetic is used in 
simplification, function evaluation, and factorization. Default is <em>off</em>.
 
<P>
<P>
 <P> <H3> 
examples: </H3>
<P><PRE><TT>

factorize(a**2 + b**2); 

     2     2
  {{A   + B ,1}} 


on complex; 


factorize(a**2 + b**2); 

  {{A + I*B,1},{A - I*B,1}} 



(x**2 + y**2)/(x + i*y); 

  X - I*Y 



on rounded; 

      *** Domain mode COMPLEX changed to COMPLEX_FLOAT 



sqrt(-17); 

  4.12310562562*I 



log(7*i); 

  1.94591014906 + 1.57079632679*I

</TT></PRE><P>Complex floating-point can be done by turning on 
<A HREF=r37_0330.html>rounded</A> in 
addition to <em>complex</em>. With <em>complex</em> off however, REDUCE knows 
that i is the square root of -1 but will not 
carry out more complicated complex operations. If you want complex 
denominators cleared by multiplication by their conjugates, turn on the 
switch 
<A HREF=r37_0324.html>rationalize</A>. 
<P>
<P>
<P>


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