Reference Guide

3-242 Full Command and Function Reference
See also: STURMAB
STURMAB
Type: Command
Description: For a polynomial
P
and a closed interval [
a, b
], STURMAB determines the number of zeroes
P
has
in [
a, b
]
Access: Arithmetic,
POLYNOMIAL
Input: A polynomial
P
Output: A list containing a number that is the same sign as
P(a
) and the number of zeroes
P
has in [
a, b
].
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: For the polynomial:
x
3
2
+
in the interval [-2,0] find the sign at the lower bound, and the number of zeroes
Command:
STURMAB(X^3+2, -2, 0)
Result:
{-6,1}
See also: STURM, ZEROS
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
L
STWS
( ´ 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.