Input/Output:

Level 1/Argument 1

 

Level 1/Item 1

 

 

 

obj

obj

 

 

 

Example: →STR can create special displays to label program output or provide prompts for input. The sequence

"Result = " SWAP →STR + 1 DISP 1 FREEZE

displays Result = object in line 1 of the display, where object is a string form of an object taken from level 1.

See also: →ARRY, →LIST, STR→, →TAG, →UNIT

STREAM

Type:

Command

 

 

 

Description:

Stream Execution Command: Moves the first two elements from the list onto the stack, and

 

executes obj. Then moves the next element (if any) onto the stack, and executes obj again using the

 

previous result and the new element. Repeats this until the list is exhausted, and returns the final

 

result.

 

 

 

 

STREAM is nominally designed for obj to be a program or command that requires two arguments

 

and returns one result.

 

 

 

Access:

LIST PROCEDURES STREAM ( °is the left-shift of the Nkey).

Input/Output:

 

 

 

 

 

 

 

 

 

 

 

 

 

Level 2/Argument 1

Level 1/Argument 2

 

Level 1/Item 1

 

 

 

 

 

 

 

 

{ list }

obj

result

 

{ 1 2 3

 

 

Example 1:

4 5 } « * » STREAM returns 120.

 

Example 2:

« + » STREAM is equivalent to ΣLIST.

 

 

See also:

DOSUBS

 

 

 

 

 

 

 

 

 

STRM

Command

 

 

 

Type:

 

 

 

Description:

Starts the StreamSmart application.

 

 

Access:

GSTREAMSMART

 

 

 

Input/Output:

None

 

 

 

 

 

 

 

 

 

STURM

 

 

 

 

 

Type:

Command

 

 

 

Description:

For a polynomial P, STURM returns a list containing Sturm’s sequences of P and their

 

multiplicities

 

 

 

Access:

Arithmetic, POLYNOMIAL

 

 

Input:

A polynomial P

 

 

 

Output:

A list containing the Sturm’s sequences for P, and the multiplicity for each (as a real number).

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).

 

 

Example:

Find the Sturm sequences and their multiplicities for the polynomial:

 

 

x3 + 1

 

 

 

Command:

STURM(X^3+1)

 

 

 

Result:

{[1],-1.,[1],1.,[X^3+1,-(3*X^2),-1],1.}

 

 

Full Command and Function Reference 3-241