From: Erik Winkels on
On 2010-03-10, Vassil Nikolov <vnikolov(a)pobox.com> wrote:
>
> Out of curiousity, what is the value of (/ (LOG -1) (SQRT -1)) in
> CCL?

Welcome to Clozure Common Lisp Version 1.4-dev-r12681M-trunk (LinuxX8632)!
? (/ (log -1) (sqrt -1))
#C(3.1415927 0.0)
From: Thomas A. Russ on
Erik Winkels <aerique(a)xs4all.nl> writes:

> On 2010-03-10, Vassil Nikolov <vnikolov(a)pobox.com> wrote:
> >
> > Out of curiousity, what is the value of (/ (LOG -1) (SQRT -1)) in
> > CCL?
>
> Welcome to Clozure Common Lisp Version 1.4-dev-r12681M-trunk (LinuxX8632)!
> ? (/ (log -1) (sqrt -1))
> #C(3.1415927 0.0)

Which is exactly what I also get from CLISP.

Is there some other answer that you are looking for?


--
Thomas A. Russ, USC/Information Sciences Institute
From: Vassil Nikolov on

On 10 Mar 2010 11:06:23 -0800, tar(a)sevak.isi.edu (Thomas A. Russ) said:

> Erik Winkels <aerique(a)xs4all.nl> writes:
>> On 2010-03-10, Vassil Nikolov <vnikolov(a)pobox.com> wrote:
>> > Out of curiousity, what is the value of (/ (LOG -1) (SQRT -1)) in
>> > CCL?
>>
>> Welcome to Clozure Common Lisp Version 1.4-dev-r12681M-trunk (LinuxX8632)!
>> ? (/ (log -1) (sqrt -1))
>> #C(3.1415927 0.0)

> Which is exactly what I also get from CLISP.

Hmmmmmmmmmmmmmmmm................

I get 3.1415927 [*]. This feature, as well as things like
arbitrary-precision long-floats, make me admire the quality of the
results from numeric computations one can obtain with CLISP.

_________
[*] cf. CLHS 12.1.3.3 Rule of Float Substitutability, the last
sentence of the second paragraph; (/ (log -1.0) (sqrt -1.0)) =>
#C(3.1415927 0.0) as required

---Vassil.


--
No flies need shaving.
From: Thomas A. Russ on
Vassil Nikolov <vnikolov(a)pobox.com> writes:

> On 10 Mar 2010 11:06:23 -0800, tar(a)sevak.isi.edu (Thomas A. Russ) said:
>
> > Erik Winkels <aerique(a)xs4all.nl> writes:
> >> Welcome to Clozure Common Lisp Version 1.4-dev-r12681M-trunk (LinuxX8632)!
> >> ? (/ (log -1) (sqrt -1))
> >> #C(3.1415927 0.0)
>
> > Which is exactly what I also get from CLISP.
>
> Hmmmmmmmmmmmmmmmm................
>
> I get 3.1415927 [*].

How odd. I get the complex result running CLISP 2.48 on Mac/Leopard.

This happens regardless of whether I start clisp with the -ansi or
-traditional flag (although in both cases :ANSI-CL is on the *features*
list, so I'm not fully confident that -traditional does anything).


> This feature, as well as things like
> arbitrary-precision long-floats, make me admire the quality of the
> results from numeric computations one can obtain with CLISP.


--
Thomas A. Russ, USC/Information Sciences Institute









From: Vassil Nikolov on

On 11 Mar 2010 09:00:00 -0800, tar(a)sevak.isi.edu (Thomas A. Russ) said:
> Vassil Nikolov <vnikolov(a)pobox.com> writes:
>> ...
>> I get 3.1415927 [*].

> How odd. I get the complex result running CLISP 2.48 on Mac/Leopard.

I am quite baffled. (That does not mean I might not be blind to the
obvious at the same time...)

---Vassil.


--
No flies need shaving.