projects
/
sbcl.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
1.0.8.8: restore reuse-sap value after incomplete writes in FROB-OUTPUT-LATER
[sbcl.git]
/
src
/
code
/
irrat.lisp
diff --git
a/src/code/irrat.lisp
b/src/code/irrat.lisp
index
5477d6d
..
5f901c9
100644
(file)
--- a/
src/code/irrat.lisp
+++ b/
src/code/irrat.lisp
@@
-95,7
+95,7
@@
(log (+ number (sqrt (- (* number number) 1.0d0))) #.(exp 1.0d0)))
(declaim (inline %atanh))
(defun %atanh (number)
(log (+ number (sqrt (- (* number number) 1.0d0))) #.(exp 1.0d0)))
(declaim (inline %atanh))
(defun %atanh (number)
- (let ((ratio (/ (1+ number) (1- number))))
+ (let ((ratio (/ (+ 1 number) (- 1 number))))
;; Were we effectively zero?
(if (= ratio -1.0d0)
0.0d0
;; Were we effectively zero?
(if (= ratio -1.0d0)
0.0d0