REORDER

Type:

Function

 

Description:

Given a polynomial expression and a variable, reorders the variables in the expression in the order

 

of powers set on the CAS Modes screen, that is, either in increasing or decreasing order.

Access:

Catalog, …µ

 

Input:

Level 2/Argument 1: The polynomial expression.

 

Level 1/Argument 2: The variable with respect to which the reordering is performed.

Output:

The reordered expression.

 

Flags:

Exact mode must be set (flag –105 clear).

 

 

Numeric mode must not be set (flag –3 clear).

 

 

Radians mode must be set (flag –17 set).

 

 

Complex mode must be set (flag –103 set) if the polynomial contains complex terms.

 

The polynomial terms order flag (flag –114) must be set for increasing power order, or clear (the

 

default) for decreasing power order.

 

Example:

Reorder the polynomial x2 + 2y2 +2x +3y in order of powers of y. Assume that increasing power

 

mode has been set in the CAS modes.

 

Command:

REORDER(X^2+2*Y^2+2*X+6+3*Y, Y)

 

Result:

2*Y^2+3*Y+(X^2+2*X)

 

REPEAT

Command

 

Type:

 

Description:

REPEAT Command: Starts loop clause in WHILE … REPEAT … END indefinite loop

 

structure.

 

 

See the WHILE entry for more information.

 

Access:

BRANCH WHILE REPEAT

( °is the left-shift of the Nkey).

Input/Output:

None

 

See also:

END, WHILE

 

 

 

 

REPL

Command

 

Type:

 

Description:

Replace Command: Replaces a portion of the target object (first input) with a specified object

 

(third input), beginning at a specified position (second input).

 

For arrays, nposition counts in row order. For matrices, nposition specifies the new location of the

 

upper left-hand element of the replacement matrix.

 

For graphics objects, the upper left corner of grob1 is positioned at the user-unit or pixel

 

coordinates (x,y) or { #n #m }. From there, it overwrites a rectangular portion of grobtarget or

 

PICT. If grob1 extends past grobtarget or PICT in either direction, it is truncated in that direction. If

 

the specified coordinate is not on the target graphics object, the target graphics object does not

 

change.

 

Access:

LIST REPL

( °is the left-shift of the Nkey).

Full Command and Function Reference 3-199