How to check whether two functions are equal in mathematica?

  • Context: Mathematica 
  • Thread starter Thread starter tgt
  • Start date Start date
  • Tags Tags
    Functions Mathematica
Join the discussion
Ask a follow-up here, or get your own question answered by working scientists, mathematicians and engineers — people, not an autocomplete.
Real named experts · corrections over time · the nuance an AI answer skips
5 replies · 8K views
tgt
Messages
519
Reaction score
2
How to do that?
 
Physics news on Phys.org
DaleSpam said:
f[x]==g[x]

It doesn't work like that.
 
robphy said:
Can you ask it to calculate the difference of the two functions?

Thats a good point, I'd try that.
 
tgt said:
It doesn't work like that.
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.