MathGroup Archive 1998

[Date Index] [Thread Index] [Author Index]

Search the Archive

FullSimplify trick


Hello,

I just like to show this stange behaviour of FullSimplify on Win95 
(Mathematica 3.0).

In[1]:=
FullSimplify[Cos[q3+qp1+qp3]-I Sin[q3+qp1+qp3]] Out[1]=
Cos[q3+qp1+qp3]-I Sin[q3+qp1+qp3]

In[2]:=
FullSimplify[TrigToExp[Cos[q3+qp1+qp3]-I Sin[q3+qp1+qp3]]] Out[2]=
E^((-I)*(q3 + qp1 + qp3))

In[3]:=
{LeafCount[%1],LeafCount[%2]}
Out[3]=
{15,10}
 
Ofcourse,  simplification is in some sence an art, but stil one  wishes
better performance. Also I have noticed that sometimes 
Fullsimplification gives much more better rezults when ExpToTrig  is
applied before.
                                      Arturas Acus
Institute of Theoretical
Physics and Astronomy
Gostauto 12, 2600,Vilnius
Lithuania 


E-mail: acus at itpa.lt
   Fax: 370-2-225361
   Tel: 370-2-612906


  • Prev by Date: logplot
  • Next by Date: Re: Absolute coordinates in Mathematica
  • Previous by thread: Re: logplot
  • Next by thread: Multiplication or separate expressions when evaluating lines in a cell?