Commit c0e12ddf6b61f571555d46c6f168e6bebabc80b1

Authored by Raymond Toy
1 parent 7c5a3186

Correct the computation of alpha and beta.

Showing 1 changed file with 3 additions and 3 deletions
... ... @@ -213,13 +213,13 @@
(defun alpha (n z)
(let ((n (float n (realpart z))))
(/ (cf-incomplete-gamma (1+ n) (/ z 2))
(/ (incomplete-gamma (1+ n) (/ z 2))
(expt z (1+ n)))))
(defun beta (n z)
(let ((n (float n (realpart z))))
(/ (- (cf-incomplete-gamma (1+ n) (/ z 2))
(cf-incomplete-gamma (1+ n) (/ z -2)))
(/ (- (incomplete-gamma (1+ n) (/ z 2))
(incomplete-gamma (1+ n) (/ z -2)))
(expt z (1+ n)))))
;; a[0](k,v) := (k+sqrt(k^2+1))^(-v);
... ...