common-lisp.net
/
projects/oct/oct.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
(parent:
64c424b
)
sum-an was summing one too many terms.
author
Raymond Toy
<toy.raymond@gmail.com>
Tue, 17 Apr 2012 16:32:27 +0000 (09:32 -0700)
committer
Raymond Toy
<toy.raymond@gmail.com>
Tue, 17 Apr 2012 16:32:27 +0000 (09:32 -0700)
qd-bessel.lisp
patch
|
blob
|
blame
|
history
diff --git
a/qd-bessel.lisp
b/qd-bessel.lisp
index
37a4c8e
..
bf3ca04
100644
(file)
--- a/
qd-bessel.lisp
+++ b/
qd-bessel.lisp
@@
-350,7
+350,7
@@
(an n k v)))
(sum term (+ sum term)))
((or (<= (abs term) (* eps (abs sum)))
- (> k big-n))
+ (>= k big-n))
sum))))
;; SUM-AB computes the series