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
STREAMType: | 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 | ||||
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 |
|
| ||
| Numeric mode must not be set (flag |
|
| ||
| Radians mode must be set (flag |
|
| ||
Example: | Find the Sturm sequences and their multiplicities for the polynomial: |
| |||
| x3 + 1 |
|
|
| |
Command: | STURM(X^3+1) |
|
|
| |
Result: |
|
|
Full Command and Function Reference