Full Command and Function Reference 3-177
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
See also: DOSUBS
STURM
CAS: For a polynomial P, return a list containing Sturm’s sequences of P and their multiplicities.
STURMAB
CAS: For polynomial P and closed interval [a, b], determine the number of zeros P has in [a, b].
STWS
Type: Command
Description: Set Wordsize Command: Sets the current binary integer wordsize to n bits, where n is a value
from 1 through 64 (the default is 64).
Values of n less than 1 or greater than 64 are interpreted as 1 or 64, respectively.
If the wordsize is smaller than an integer entered on the command line, then the most significant
bits are not displayed upon entry. The truncated bits are still present internally (unless they
exceed 64), but they are not used for calculations and they are lost when a command uses this
binary integer as an argument.
Results that exceed the given wordsize are also truncated to the wordsize.
Access: !´
BASE LSTWS ( ´ is the left-shift of the Pkey).
… ã
STWS (ã is the right-shift of the 3key).
Flags: Binary Integer Wordsize (-5 through -10), Binary Integer Base (-11, -12)
Input/Output:
Level 1/Argument 1 Level 1/Item 1
n
→
#n
→
See also: BIN, DEC, HEX, OCT, RCWS
SUB
Type: Command Operation
Description: Subset Command: Returns the portion of a string or list defined by specified positions, or
returns the rectangular portion of a graphics object or PICT defined by two corner pixel
coordinates.
If n
end position
is less than n
start position
, SUB returns an empty string or list. Values of n less than 1 are
treated as 1; values of n exceeding the length of the string or list are treated as that length.
For graphics objects, a user-unit coordinate less than the minimum user-unit coordinate of the
graphics object is treated as that minimum. A pixel or user-unit coordinate greater than the
maximum pixel or user-unit coordinate of the graphics object is treated as that maximum.
Access: !°
LIST SUB ( °is the left-shift of the Nkey).