I am new to Mathematica. So I have read the documentation for comparing expressions in Mathematica and I still don't get the SameQ (===) function. Let me give you a short example:
2+2 === 4
True
Log[x*x] === 2*Log[x]
False
I hope I'm not seeing something here. Help is much appreciated!
1. + $MachineEpsilon === 1.andFullForm /@ {1. + $MachineEpsilon, 1.}. The tolerance is controlled byInternal`$SameQTolerance. Also, as you almost point out, forx == -1, the identity fails:{Log[(-1)^2], 2 Log[-1]}equals{0, 2 I Pi}. – Michael E2 Jan 26 '15 at 13:46SameQ. True also about the complex solutions - We could also say that x is an object different than the usual where also the identity holds but this would be going to far :-) – tchronis Jan 26 '15 at 14:221/(a)^(3/4) === Simplify[(1/a)^(3/4), a > 0]– tchronis Jul 19 '17 at 19:36