Operators > Matrix Operators > Range Variables
Range Variables
Range variables are sequences of values defined using the range operator:
The range variable i is a sequence starting at 0 and finishing at 2 with a step size of 1 between each sequence value. You can change the step size by defining the second value of the sequence:
The step size of the range variable j is 0.1.
Range variables are not vectors.
You cannot define a variable in terms of a range variable.
We’ll define t as a range:
Although
You cannot type something like
Mathcad assumes this should be a scalar.
Here is j defined with a scalar:
Using Range Variables
Range variables are effectively loops that you can use to:
Define arrays. See Methods for Defining Arrays.
Find the summation or product of a range. For example:
Iterate solutions.
Was this helpful?