When trying to solve a set of equations, I made a mistake by using = instead of ==. Now when I fixed the mistake, the equation still always yield True. Switching the kernel off and back on would solve the problem, but is there a better way?
Sample code:
DSolve[y'[t] = 2, y[t], t]
(*DSolve::deqn: Equation or list of equations expected instead of 2
in the first argument 2*)
DSolve[y'[t] == 2, y[t], t]
(*DSolve[True, y[t], t]*)
y'[t]=.(the short form ofUnset). – MikeLimaOscar Mar 01 '16 at 14:20Clear[y]also works. – bbgodfrey Mar 01 '16 at 20:54Clear[y]doesn't work? Thanks! – arax Mar 02 '16 at 07:14Clear[y]doesn't work because your mistaken definition is not associated with the symboly. It is aSubValueofDerivativewhich is the Head of the FullForm of the expression. See this question for the answer to your probable next question! – MikeLimaOscar Mar 02 '16 at 11:41