Dismiss Notice
Join Physics Forums Today!
The friendliest, high quality science and math community on the planet! Everyone who loves science is here!

How to check whether two functions are equal in mathematica?

  1. Nov 21, 2008 #1

    tgt

    User Avatar

    How to do that?
     
  2. jcsd
  3. Nov 21, 2008 #2

    Dale

    Staff: Mentor

    f[x]==g[x]
     
  4. Nov 21, 2008 #3

    tgt

    User Avatar

    It doesn't work like that.
     
  5. Nov 22, 2008 #4

    robphy

    User Avatar
    Science Advisor
    Homework Helper
    Gold Member

    Can you ask it to calculate the difference of the two functions?
     
  6. Nov 22, 2008 #5

    tgt

    User Avatar

    Thats a good point, I'd try that.
     
  7. Nov 22, 2008 #6

    Dale

    Staff: Mentor

    Oops, you are correct, it wants you to supply arguments to evaluate it at a single point.

    You can use TrueQ[f[x]==g[x]] or Simplify[f[x]==g[x]] instead.
     
Know someone interested in this topic? Share this thread via Reddit, Google+, Twitter, or Facebook

Have something to add?



Similar Discussions: How to check whether two functions are equal in mathematica?
Loading...