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.

log<br />

302<br />

I<br />

(locf (array-leader faa 3» ==> (ap-leader faa 3)<br />

(locf a) ==> (variable-location 'a)<br />

(locf (plist 'a» ==> (property-cell-location 'a)<br />

(locf (aref q 2» ==> (aloc q 2)<br />

If access-form invokes a macro or a substitutable function, locf expands the<br />

access-form· and starts over again. This lets you use .locf together with<br />

defstruct accessors.<br />

If access-form is (cdr list), locf returns the list itself instead of a locative.<br />

See the section "Generalized Variables" in Symbolics Common Lisp: Language<br />

Concepts.<br />

log number &optional base Function<br />

Computes and returns the logarithm of number in the base base, which<br />

defaults to e, the base of the natural logarithms. Note that the result can<br />

be a complex number even when the argument is noncomplex. This occurs<br />

if the argument is negative.<br />

The range of the one-argument log function is that strip of the complex<br />

plane containing numbers with imaginary parts between -1t (exclusive) and<br />

1t (inclusive).<br />

The range of the two-argument log function is the entire complex plane.<br />

I t is an error if number or base is zero. Both arguments can be numbers<br />

of any type.<br />

The result is always in complex or noncomplex floating-point format.<br />

Numeric type coercion is applied to the arguments where proper.<br />

Examples:<br />

(log 2) => B.6931472<br />

(log 16 2) => 4.B<br />

(log -1.B) => #C(B.B 3.1415927)<br />

(log -1 #C(B 1» => #C(2.B B.B)<br />

For a table of related items: See the section "Powers Of e and Log<br />

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

<strong>zl</strong>:log n Function<br />

Returns the natural logarithm of n. n must be positive, and can be of any<br />

numeric data type.<br />

Example:

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

Saved successfully!

Ooh no, something went wrong!