Function: math[seqby] - returns a sequence of values

Calling Sequence:

seqby(expr, x=m .. n, step)

Parameters:

expr - any expression
x - the name of the indeterminate in expr

m - start value

n - end value

step - (optional) step size

Description:

The seqby function is similar to seq but also accepts a step size.

If the third argument is not given, the step size is 1.

The return is a sequence of expressions.

If m and n and step are of type rational, then seqby returns rational expressions. If m, n, or step is of type float, then seqby returns a sequence of floats.

Since internally seqby uses the seq function, the cost of seqby is linear in the length of the sequence.

This function is part of the math package, and so can be used only after performing the command with(math) or with(math, seqby).

Examples:

> with(math, seqby):

> seqby(x^2, x=1 .. 2, 0.25);

[Maple Math]

> seqby([x, sqrt(x)], x=1 .. 2, 1/4);

[Maple Math]

> seqby(a*sqrt(x), x=1 .. 10, 2);

[Maple Math]

See Also:

seq , for , math/seqnest , math/recseq .

Version History:

Version 1.0 - March 14, 1998

Version 2.0 - December 12, 1998