projects
/
mit-scheme.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
83bf9b9
)
Fix harmless typo.
author
Taylor R Campbell
<campbell@mumble.net>
Tue, 20 Nov 2018 07:01:43 +0000
(07:01 +0000)
committer
Taylor R Campbell
<campbell@mumble.net>
Tue, 20 Nov 2018 07:01:43 +0000
(07:01 +0000)
Accidentally using base 2 set this bound far lower than it needed to
be, but this branch isn't necessary anyway; it just skips a call to
exp that would have given the same result.
src/runtime/arith.scm
patch
|
blob
|
history
diff --git
a/src/runtime/arith.scm
b/src/runtime/arith.scm
index d1883d3014bdfcc2fe4f64cf15afce654c55cd24..9e0071659664981e31fcd294dad5bb214f79775b 100644
(file)
--- a/
src/runtime/arith.scm
+++ b/
src/runtime/arith.scm
@@
-2283,7
+2283,7
@@
USA.
(define (logistic x)
(guarantee-real x 'logistic)
- (cond ((< x flo:least-subnormal-exponent-base-
2
)
+ (cond ((< x flo:least-subnormal-exponent-base-
e
)
;; e^x/(1 + e^x) < e^x < smallest positive float. (XXX Should
;; raise inexact and underflow here.)
0.)