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

Command

 

 

 

Type:

 

 

 

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

 

→ARRY,

 

 

 

See also:

→LIST, →STR, →TAG

 

 

 

 

 

 

 

 

UNPICK

RPL Command

 

 

 

Type:

 

 

 

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 LUNPICK

( °is the left-shift of the Nkey).

 

 

Input/Output:

 

 

 

 

 

 

 

 

 

 

 

 

Ln+2

Ln+1

L3

L2

L1

 

Ln

Ln–1

L1

 

 

 

 

 

 

 

 

 

 

 

 

 

objn

objn-1

obj1

obj

n

obj

objn-1

obj1

 

Replace the

 

 

 

 

 

 

 

Example:

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

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

3-264 Full Command and Function Reference