It is very important that you do not confuse
x=y with
x
y. While
x=y is an
imperative statement that actually causes an assignment to be done,
x
y merely
tests whether
x and
y are equal, and causes no explicit action. If you have used the C programming language, you will recognize that the notation for assignment and testing in
Mathematica is the same as in C.
The tests we have used so far involve only numbers, and always give a definite answer, either
True or
False. You can also do tests on symbolic expressions.
Even when you do tests on symbolic expressions, there are some cases where you can get definite results. An important one is when you test the equality of two expressions that are
identical. Whatever the numerical values of the variables in these expressions may be,
Mathematica knows that the expressions must always be equal.
Expressions like
x
4 represent
equations in
Mathematica. There are many functions in
Mathematica for manipulating and solving equations.