Sequence Parameters

Top  Previous  Next

Sequence parameters define a range of values that the parameter will be selected from sequentially.

 

Sequence parameters are defined using the sequence command.

 

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

 

Examples:

 

$p=sequence(1,100)                $p will take sequential integer values from 1 to 100.

$q=sequence(2,4.5,0.001)        $q will take sequential values from 2 to 4.5 in 0.001 increments.

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