Let's say expr1= Sin x expr2 = e^x -e^-x/2j
Now we know they are the same mathematically, how will I come to know expr1=expr2 and they are the same?
Let's say I have these two equations and have code as these
FullSimplify[
(ComplexExpand[#1,
TargetFunctions ->
{Re, Im}] & )[
Abs[1 + (I*2*Pi)/
(E^((-I)*2*Pi) -
E^((-I)*2*Pi*\[Lambda]))]^2]]
and then we have
(ComplexExpand[#1,
TargetFunctions ->
{Re, Im}] & )[
Abs[1 + (I*2*Pi)/
(E^((-I)*2*Pi) -
E^((-I)*2*Pi*\[Lambda]))]^2]
Both of them yield different answers but can I check whether they are the same or not?
FullSimplify[expr1 == expr2]
? (Incorporate variable assumptions withAssuming[]
whenever applicable.) $\endgroup$FullSimplify[Sin[x] == (Exp[I x] - Exp[-I x])/(2 I)]
. TheTrue
result implies that the equation is indeed true for all complex values ofx
. $\endgroup$True
for me. Maybe try restarting your kernel? $\endgroup$