Mathematica How to check whether two functions are equal in mathematica?

AI Thread Summary
The discussion centers on evaluating the equality of two functions, f[x] and g[x]. Initial attempts to compare them directly are noted as ineffective. Participants suggest calculating the difference between the two functions as a potential solution. It is clarified that the evaluation requires specific arguments to assess the functions at a single point. Alternatives such as using TrueQ[f[x]==g[x]] or Simplify[f[x]==g[x]] are recommended for correctly determining the equality of the functions.
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.
 
Can you ask it to calculate the difference of the two functions?
 
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.
 

Similar threads

Replies
4
Views
3K
Replies
1
Views
2K
Replies
3
Views
2K
Replies
1
Views
2K
Back
Top