0

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]*)
arax
  • 1,831
  • 12
  • 16

1 Answers1

3

From the docs:

Unset (=.)

lhs=.

removes any rules defined for lhs.

Rules are removed only when their left-hand sides are identical to lhs, up to renaming of patterns.

Undefine a value:

In[1]:= x = 5;

In[2]:= x =.

In[3]:= x

Out[3]= x