Changeset 14669
- Timestamp:
- Mar 7, 2011, 1:39:28 PM (14 years ago)
- File:
-
- 1 edited
-
trunk/source/level-0/l0-float.lisp (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
trunk/source/level-0/l0-float.lisp
r14365 r14669 746 746 (%sf-atan2 (%short-float y) (%short-float x))) 747 747 (if (typep y 'complex) 748 (let* ((iy (* (sqrt -1) y))) 749 (/ (- (log (+ 1 iy)) (log (- 1 iy))) 750 #c(0 2))) 748 ;; atan y = atanh(i*y)/i = -i atanh(i*y) 749 (let* ((iy (complex (- (imagpart y)) (realpart y))) 750 (h (/ (- (log (+ 1 iy)) (log (- 1 iy))) 2))) ;(atanh iy) 751 (complex (imagpart h) (- (realpart h)))) 751 752 (if (typep y 'double-float) 752 753 (%double-float-atan! y (%make-dfloat))
Note:
See TracChangeset
for help on using the changeset viewer.
