To assign a value to a variable use the = symbol or choose the variable to assign to with the
x=5
value=82
Variables can be used in any equation and are substituted for their assigned value.
Variables can be inserted using the
6x+3
xy−3x+7y−21
The following variables are always defined.
ans |
Result of previous calculation |
e |
Euler's Number |
π |
Pi |
rand |
Random value in the range [0,1] (changes on each read) |