Re: n accuracy



On 30 May 2007 00:19:57 -0700, fireblade <slobodan.blazeski@xxxxxxxxx> wrote:

Yesterday I was lisping some statistics so I needed e, considering I
couldn't find it at hyperspec (too much coffein I guess) so I used
(exp 1) => 2.7182818 but author of the stat book seemed to have
different idea about some digits.

This looks like the correct approximation for 8 digits to me. If the
author of your book thinks that some of the digits should be
different, then maybe you need another book.

If you need more digits, try (EXP 1D0).

--

Lisp is not dead, it just smells funny.

Real email: (replace (subseq "spamtrap@xxxxxxxxxx" 5) "edi")
.



Relevant Pages

  • Re: n accuracy
    ... fireblade wrote: ... couldn't find it at hyperspec (too much coffein I guess) so I used ... different idea about some digits. ...
    (comp.lang.lisp)
  • Re: n accuracy
    ... ??>> couldn't find it at hyperspec (too much coffein I guess) so I used ... EW> This looks like the correct approximation for 8 digits to me. ...
    (comp.lang.lisp)
  • Re: n accuracy
    ... EW> This looks like the correct approximation for 8 digits to me. ... f>>long-floats or made my program use bignums. ... in CLISP you can control how long long numbers are. ...
    (comp.lang.lisp)