Re: n accuracy
- From: Mark Hoemmen <mark.hoemmen@xxxxxxxxx>
- Date: Wed, 30 May 2007 14:28:50 -0700
fireblade 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. So I've done this to calculate
accuracy of e , actually it's power n:
;;;; Exponent of e
;;; e is the base of the natural logarithms
;;; 1 n
;;; calculated as e =(1 + - )
;;; n
;;; or in lisp
I forget whether you're going to have some issues with rounding error or not, when using that formula. You may want to check a proper numerics manual (NOT "Numerical Methods") to be sure.
mfh
.
- References:
- n accuracy
- From: fireblade
- n accuracy
- Prev by Date: Re: Lisp for generating VHDL code?
- Next by Date: Re: Why I love Common Lisp : power! power! power!
- Previous by thread: Re: n accuracy
- Next by thread: code critique
- Index(es):
Relevant Pages
|
|