home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Frozen Fish 1: Amiga
/
FrozenFish-Apr94.iso
/
bbs
/
alib
/
d3xx
/
d385
/
xlispstat.lha
/
XLispStat
/
lisp.lzh
/
XLisp-Stat
/
Book
/
lik-gamma.lsp
< prev
next >
Encoding:
Amiga
Atari
Commodore
DOS
FM Towns/JPY
Macintosh
Macintosh JP
Macintosh to JP
NeXTSTEP
RISC OS/Acorn
Shift JIS
UTF-8
Wrap
Text File
|
1990-10-11
|
285 b
|
14 lines
; book p.108
(require "functions/newton.lsp")
(def x (gamma-rand 30 4.5))
(def f (let ((s (sum (log x)))
(n (length x)))
#'(lambda (a)
(- (* (- a 1) s) (* n (log-gamma a))))))
(def df (make-derivative f .001))
(def ddf (make-derivative df .001))