Reference Guide

3-264 Full Command and Function Reference
Input: Level 1/Item 1: The name of a global variable, or a list of global names, to be removed from the
REALASSUME list.
Output: Level 1/Item 1: The same name or list of names as was input, even if any of the named variables
were not in REALASSUME.
Example: Remove the variables S1 and S2 which are include in the REALASSUME list by default.
Command:
UNASSUME({S1, S2})
Result:
{S1, S2}
See also: ADDTOREAL, ASSUME, DEF, LOCAL, UNASSIGN, UNBIND
UNBIND
Type: Command
Description: Removes all local variables created by the LOCAL command, and returns their values. This is
useful only if a program needs to remove local variables created earlier in the same program.
Access: Catalog, …µ
Input: None
Output: Level 1/Item 1: A list of the local variables that have been removed, with their values.
Example: Remove the local variables A and B created by the example for LOCAL.
Command:
UNBIND
Result:
{
B=2,
A=0}
See also: DEF, LOCAL, STORE, UNASSIGN, UNASSUME
→UNIT
Type: Command
Description: Stack to Unit Object Command: Creates a unit object from a real number and the unit part of a
unit object. →UNIT adds units to a real number, combining the number and the unit part of a
unit object (the numerical part of the unit object is ignored). →UNIT is the reverse of OBJ→
applied to a unit object.
Access: …µ
UNIT
Input/Output:
Level 2/Argument 1 Level 1/Argument 2 Level 1/Item 1
x
y_unit
x_unit
See also: →ARRY, →LIST, →STR, →TAG
UNPICK
Type: RPL Command
Description: Replaces the object at level n+2 with the object at level 2
and deletes the objects at levels 1
and 2.
Can be though of as a “stack poke”.
Access:
STACK
L
UNPICK
( °is the left-shift of the Nkey).
Input/Output:
L
n+2
L
n+1
L
3
L
2
L
1
L
n
L
n–1
L
1
obj
n
obj
n-1
obj
1
obj
n
obj
obj
n-1
obj
1
Example: Replace the fourth object with an "X":
55555 4444 333 22 1 "X" 4 UNPICK
returns
55555 "X" 333 22 1
.
See also: OVER, PICK, ROLL, ROLLD, SWAP, ROT