<A NAME=EXP_switch>
<TITLE>EXP_switch</TITLE></A>
<b><a href=r37_idx.html>INDEX</a></b><p><p>
<B>EXP</B> _ _ _ _ _ _ _ _ _ _ _ _ <B>switch</B><P>
<P>
<P>
<P>
When the <em>exp</em> switch is on, powers and products of expressions are
expanded. Default is <em>on</em>.
<P>
<P>
<P> <H3>
examples: </H3>
<P><PRE><TT>
(x+1)**3;
3 2
X + 3*X + 3*X + 1
(a + b*i)*(c + d*i);
A*C + A*D*I + B*C*I - B*D
off exp;
(x+1)**3;
3
(X + 1)
(a + b*i)*(c + d*i);
(A + B*I)*(C + D*I)
length((x+1)**2/(y+1));
2
</TT></PRE><P>Note that REDUCE knows that i^2 = -1.
When <em>exp</em> is off, equivalent expressions may not simplify to the same
form, although zero expressions still simplify to zero. Several operators
that expect a polynomial argument behave differently when <em>exp</em> is
off, such as
<A HREF=r37_0157.html>length</A>. Be cautious about leaving <em>exp</em> off.
<P>
<P>
<P>