Defining a Variable

Often you need to define a value as a variable to use in subsequent calculations. In this tutorial you can practice defining and viewing single-value and range variables.

Tutorial - Defining Variables

Discussion and Example

Before you can evaluate an expression involving a variable rather than a constant, you must define the variable. To do so:

  1. Type the variable name.

    A

  2. Type [:] to see the definition symbol, :=, and a placeholder.

    A := placeholder

  3. Type a number, an expression, or a string in the placeholder.

    A := 2 + 6

If you type an expression in the placeholder, make sure any variables or functions you use in that expression are not undefined variables marked in red.

Once you have defined a variable, you can compute with it anywhere below and to the right of the equation that defines it. You can also redefine the variable and the new definition will be used in following equations.

Tutorial - Calculating with Variables

Related Topics