17.05.2015 Views

zl:1 - FTP

zl:1 - FTP

zl:1 - FTP

SHOW MORE
SHOW LESS

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

11<br />

<strong>zl</strong> :\\\\<br />

I<br />

(z1:\ 3 2) => 1<br />

(z1:\ -3 2) => -1<br />

(z1:\ 3 -2) => 1<br />

(z1:\ -3 -2) => -1<br />

The following functions are synonyms for <strong>zl</strong>:\\ :<br />

rem<br />

<strong>zl</strong>:remainder<br />

Note: In programs using the Zetalisp syntax you would represent <strong>zl</strong>:\\ as \.<br />

The function is represented here as <strong>zl</strong>:\\ only because all objects in this<br />

manual are represented as if printed by print with *package* bound to the<br />

Common Lisp readtable. In Common Lisp, the backslash character (\) is<br />

the escape character and must be doubled.<br />

<strong>zl</strong>:\\\\<br />

x y &rest args<br />

Returns the greatest common divisor of all its arguments.<br />

must be integers.<br />

The following function is a synonym of <strong>zl</strong>:\\\\ :<br />

<strong>zl</strong>:gcd<br />

Function<br />

The arguments<br />

note: In programs using the Zetalisp syntax you would represent <strong>zl</strong>:\\\\ as \\.<br />

The function is represented here as <strong>zl</strong>:\\\\ only because all objects in this<br />

manual are represented as if printed by print with *package* bound to the<br />

Common Lisp readtable. In Common Lisp, the backslash character (\) is<br />

the escape character and must be doubled.<br />

<strong>zl</strong>:" x y Function<br />

Returns x raised to the yth power. The result is an integer if both arguments<br />

are integers (even if y is negative!) and floating-point if either x<br />

or y or both is floating-point. If the exponent is an integer a repeatedsquaring<br />

algorithm is used, while if the exponent is floating the result is<br />

(exp (* y (log x»).<br />

The following functions are synonyms of <strong>zl</strong>:"<br />

<strong>zl</strong>:expt<br />

<strong>zl</strong>:"$<br />

<strong>zl</strong>:" $ x y Function<br />

Returns x raised to the yth power. The result is an integer if both arguments<br />

are integers (even if y is negative!) and floating-point if either x<br />

or y or both is floating-point. If the exponent is an integer a repeatedsquaring<br />

algorithm is used, while if the exponent is floating the result is<br />

(exp (*~ y (log x»).

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

Saved successfully!

Ooh no, something went wrong!