Range Parameters

Top  Previous  Next

Range parameters define a range of values that the parameter can be selected from. Range parameters are often the most useful dynamic parameters.

 

Range parameters are defined using the range command.

 

$p=range(low,high,increment (optional))

 

Examples:

 

$p=range(1,100)                $p can take any (integer) value from 1 to 100.

$q=range(2,4.5,0.001)                $q can take any value from 2 to 4.5 in 0.001 increments.

$r=range(0,3pi,pi/4)                $r can take any value from 0 to 3π in increments of π/4. The values will be inserted as decimals.