17.05.2015 Views

zl:1 - FTP

zl:1 - FTP

zl:1 - FTP

SHOW MORE
SHOW LESS

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

<strong>zl</strong>:aset 38<br />

I<br />

(setq a-string-array<br />

(<strong>zl</strong> :make-array 5 :type <strong>zl</strong>:art-8b :initia1-va1ue (ascii-code #\x»)<br />

=> #(129 129 129 129 129)<br />

(ascii-to-string a-string-array) => "xxxxx"<br />

For a table of related items: See the section "ASCII String Functions" in<br />

Symbolics Common Lisp: Language Concepts.<br />

<strong>zl</strong>:aset element array &rest subscripts Function<br />

Stores element into the element of array selected by the subscripts. The<br />

subscripts must be integers and their number must match the dimensionality<br />

of array. The returned value is element.<br />

Current style suggests using setf and aref instead of zI:aset. Fpr example:<br />

(setf (aref array subscripts ... ) new-value)<br />

ash number count Function<br />

Shifts number arithmetically left count bits if count is positive, or right<br />

-count bits if count is negative. Unused positions are filled by zeroes from<br />

the right, and by copies of the sign bit from the left. Thus, unlike Ish, the<br />

sign of the result is always the same as the sign of number. If number is<br />

an integer, this is a shifting operation. If number is a floating-point number,<br />

this does scaling (multiplication by a power of two), rather than actually<br />

shifting any bits.<br />

Examples:<br />

(ash 1 3) => 8<br />

(ash 19 3) => 89<br />

(ash 19 -3) => 1<br />

(ash 1 -3) => 9<br />

(ash 1.5 3) => 12.9<br />

(ash -1 3) => -8<br />

(ash -1 -3) => -1<br />

See the section "Functions Returning Result of Bit-wise Logical<br />

Operations" in Symbolics Common Lisp: Language Concepts.<br />

For a table of related items: See the section "Functions Returning Result<br />

of Bit-wise Logical Operations" in Symbolics Common Lisp: Language Concepts.<br />

asin number Function<br />

Computes and returns the arc sine of number. The result is in radians.<br />

The argument can be any noncomplex or complex number. Note that if the<br />

absolute value of number is greater than one, the result is complex, even if<br />

the argument is not complex.

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

Saved successfully!

Ooh no, something went wrong!