$- Maple Programming Help # Online Help ###### All Products Maple MapleSim$

operator for forming an expression sequence

 Calling Sequence expr $i = m..n expr$ n $m..n $(expr,i = m..n) $(expr,n) $(m..n)

Parameters

 expr - expression i - unevaluated name m, n - expressions

Description

 • You can use the $operator to return the expression sequence produced by substituting for i in expr the values m,m+1,...,n (or up to the last value not exceeding n).  • If m>n then the NULL expression sequence is returned.  • A call to$ in the form:  $m..n will have the same effect as the call: i$ i = m..n.
 • A call to $in the form: expr$ n will have the same effect as the call: expr $i = 1..n (assuming that expr does not contain i). Note: It is recommended (and often necessary) that both 'expr' and 'i' be enclosed in single quotes to prevent premature evaluation. (If i had been assigned a value, the i in the expression would be evaluated to its value, and so could not be used as a counting variable.) The most common use is 'expr'$ 'i' = m..n.

 • In a procedure, $is used as the end-of-parameters marker. For more information on this use of$, see Parameter Declarations.

 • The $operator is thread-safe as of Maple 15.  • For more information on thread safety, see index/threadsafe. Examples  > $\mathrm{}\left(2..5\right)$  ${2}{,}{3}{,}{4}{,}{5}$ (1)  > ${i}^{2}$\left(i=\frac{2}{3}..\frac{8}{3}\right)$
 $\frac{{4}}{{9}}{,}\frac{{25}}{{9}}{,}\frac{{64}}{{9}}$ (2)
 > ${a}_{i}$\left(i=1..3\right)$  ${{a}}_{{1}}{,}{{a}}_{{2}}{,}{{a}}_{{3}}$ (3)  > $x$4$
 ${x}{,}{x}{,}{x}{,}{x}$ (4)