AT&T UNIX™PC Unix System V Users Manual - tenox

AT&T UNIX™PC Unix System V Users Manual - tenox AT&T UNIX™PC Unix System V Users Manual - tenox

01.01.2013 Views

DC( 1) DC (1) x =x The top two elements of the stack are popped and compared. Register x is evaluated if they obey the stated relation. v replaces the top element on the stack by its square root. Any existing fractional part of the argument is taken into account, but otherwise the scale factor is ignored. interprets the rest of the line as a UNIX command. c All values on the stack are popped. The top value on the stack is popped and used as the number radix for further input. I pushes the input base on the top of the stack. o The top value on the stack is popped and used as the number radix for further output. 0 pushes the output base on the top of the stack. k the top of the stack is popped, and that value is used as a non-negative scale factor: the appropriate number of places are printed on output, and maintained during multiplication, division, and exponentiation. The interaction of scale factor, input base, and output base will be reasonable if all are changed together. z The stack level is pushed onto the stack. z ? ' . EXAMPLE replaces the number on the top of the stack with its length. A line of input is taken from the input source (usually the terminal) and executed. are used by be for array operations. This example prints the first ten values of n!: [lal+dsa•plalO>y]sy Osal lyx SEE ALSO bc(l), which is a preprocessor for de providing infix notation and a C-like syntax which implements functions and reasonable control structures for programs. DIAGNOSTICS x is unimplemented where x is an octal number. stack empty for not enough elements on the stack to do what was � asked. Out of space when the free list is exhausted (too many digits). Out of headers for too many numbers being kept around. - 2 -

DC(l) DC (1) Out of pushdown for too many items on the stack. Nesting Depth for too many levels of nested execution. - 3-

DC(l) DC (1)<br />

Out of pushdown<br />

for too many items on the stack.<br />

Nesting Depth<br />

for too many levels of nested execution.<br />

- 3-

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!