After receiving an XOFF command (with transmit pacing in the reserved variable IOPAR set), XMIT stops transmitting and waits for an XON command. XMIT resumes transmitting if an XON is received before the time-out set by STIME elapses; otherwise, XMIT terminates, returns a 0, and stores "Timeout" in ERRM.

Access: …µXMIT

Flags: I/O Device (–33), I/O Device for Wire (–78)

Input/Output:

 

 

Level 1/Argument 1

 

Level 2/Item 1

Level 1/Item 2

 

 

 

 

 

 

 

 

string

 

1

 

 

string

substringunsent

0

 

BUFLEN,

 

 

 

 

See also:

SBRK, SRECV, STIME

 

 

 

 

 

 

 

 

 

XNUM

 

 

 

 

 

Type:

Command

 

 

 

Description:

Converts an object or a list of objects to 12-digit decimal numeric format. Similar to →NUM

 

except that →NUM does not work with lists, nor in programs in algebraic mode.

Access:

Catalog, …µ

 

 

 

Input:

An object or list of objects.

 

 

 

Output:

The objects in numeric format.

 

 

 

Example:

Find the 12-digit numeric values of π/2, 3e, and 4cos(2).

 

Command:

XNUM({π/2,3*e,4*COS(2})

 

 

 

Results:

{1.5707963268 8.15484548538 -1.66458734619}

 

See also:

I→R, →NUM

 

 

 

 

 

 

 

 

 

XOR

Function

 

 

 

Type:

 

 

 

Description: Exclusive OR Function: Returns the logical exclusive OR of two arguments.

When the arguments are binary integers or strings, XOR does a bit-by-bit (base 2) logical comparison:

Binary integer arguments are treated as sequences of bits with length equal to the current

wordsize. Each bit in the result is determined by comparing the corresponding bits (bit1 and bit2) in the two arguments, as shown in the following table:

bit1

bit2

bit1 XOR bit2

 

 

 

0

0

0

0

1

1

1

0

1

1

1

0

String arguments are treated as sequences of bits, using 8 bits per character (that is, using the binary version of the character code). The two string arguments must be the same length.

When the arguments are real numbers or symbolics, XOR simply does a true/false test. The result is 1 (true) if either, but not both, arguments are nonzero; it is 0 (false) if both arguments are nonzero or zero. This test is usually done to compare two test results.

If either or both of the arguments are algebraic objects, then the result is an algebraic of the form symb1 XOR symb2. Execute →NUM (or set flag –3 before executing XOR) to produce a numeric result from the algebraic result.

Access: ÃLLOGIC XOR

(Ã is the right-shift of the 3key).

Full Command and Function Reference 3-277