MathGroup Archive 1996

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

Search the Archive

Re: Are two expressions equal?

  • To: mathgroup at smc.vnet.net
  • Subject: [mg5082] Re: Are two expressions equal?
  • From: rubin at msu.edu (Paul A. Rubin)
  • Date: Fri, 25 Oct 1996 22:48:39 -0400
  • Organization: Michigan State University
  • Sender: owner-wri-mathgroup at wolfram.com

In article <54kam8$d6r at dragonfly.wolfram.com>,
   jeremy_gorman at smtp.svl.trw.com (Jeremy Gorman) wrote:
->Hello Folks,
->
->How can I check to see if these expressions are equal?
->----------------------------
->In[25]:=
->q1 == q2
->Out[25]=
[gory trig expression == other gory trig expression deleted]
->-------------------------------
->I've tried 
->Expand[q1]==Expand[q2]
->but Mma 2.2.2 still returns an expresion with == in it.
->I could go through comparing subexpressions, but there are a few
->more of these which I'd like to compare, and I'm hoping for a 
->more general approach.
->
->Thanks in advance
->Jeremy
->
->/*\ \*/ /*\ \*/ /*\ \*/ /*\ \*/ /*\ \*/ /*\ \*/ /*\ \*/ /*\ \*/
->Jeremy Gorman                                  "Just a Comment"
->Most of my opinions are my own (especially if expressed here) !
->/*\ \*/ /*\ \*/ /*\ \*/ /*\ \*/ /*\ \*/ /*\ \*/ /*\ \*/ /*\ \*/

Try Expand[q1, Trig->True] == Expand[q2, Trig->True] and see if that works.

-- Paul

**************************************************************************
* Paul A. Rubin                                  Phone: (517) 432-3509   *
* Department of Management                       Fax:   (517) 432-1111   *
* Eli Broad Graduate School of Management        Net:   RUBIN at MSU.EDU    *
* Michigan State University                                              *
* East Lansing, MI  48824-1122  (USA)                                    *
**************************************************************************
Mathematicians are like Frenchmen:  whenever you say something to them,
they translate it into their own language, and at once it is something
entirely different.                                    J. W. v. GOETHE


  • Prev by Date: Re: Nonlinear fit to diff eqs.
  • Next by Date: Mysterious Page Skip/Double Cell Printing?
  • Previous by thread: Are two expressions equal?
  • Next by thread: Re: Are two expressions equal?