Drexel dragonThe Math ForumDonate to the Math Forum



Search All of the Math Forum:

Views expressed in these public forums are not endorsed by Drexel University or The Math Forum.


Math Forum » Discussions » Software » comp.soft-sys.math.mathematica

Topic: Re: [mg5058] Are two expressions equal?
Replies: 0  

Advanced Search

Back to Topic List Back to Topic List  
Allan Hayes

Posts: 1,508
Registered: 12/6/04
Re: [mg5058] Are two expressions equal?
Posted: Oct 30, 1996 12:16 AM
  Click to see the message monospaced in plain text Plain Text   Click to reply to this topic Reply

jeremy_gorman@smtp.svl.trw.com (Jeremy Gorman)
Subject: [mg5058] Are two expressions equal?
writes

>How can I check to see if these expressions are equal?

Jeremy,

Instead of looking at q1 == q2 you might try to try and reduce q1 -
q2 say by

Simplify[q1-q2] or
Expand[q1-q2, Trig -> True] (*Trig->True for Trig functions*)
Together[q1-q2, Trig -> True]

and combinations of these.

If you get 0 you have proved equality.
If you can find numerical values for the variables and constants
that definitely give a non-zero value then you will have proved
inequality. And if a range of random assignments of numerical values
all give 0 for q1-q2 it is probable that q1=q2.

Allan Hayes
hay@haystack.demon.co.uk
http://www.haystack.demon.co.uk/



.dem





Point your RSS reader here for a feed of the latest messages in this topic.

[Privacy Policy] [Terms of Use]

© Drexel University 1994-2014. All Rights Reserved.
The Math Forum is a research and educational enterprise of the Drexel University School of Education.