Comparing two symbolic expressions without sympy
From
diff(sin(x),x) == cos(x)
one gets just trivial equality cos(x)== cos(x)
instead of True
. This can be fixed by loading sympy
and
import sympy as sp
from sympy import *
x = symbols('x')
but this spoils my code. Is there a sage solution?
I do not know if this helps in your case but you can check if the difference of the left hand side and the right hand side of the equation is zero. Or this:
It surely does, thanks.