mirror of
https://github.com/ashinn/chibi-scheme.git
synced 2025-05-20 22:29:16 +02:00
Fixing (atan -0.0 -1.0) case.
This commit is contained in:
parent
a49907b9b6
commit
b713fb8c34
1 changed files with 1 additions and 1 deletions
|
@ -1175,7 +1175,7 @@
|
|||
(if (and (inf? x) (inf? y))
|
||||
(* (if (< y 0) -1 1) (if (= x -inf.0) 3 1) 0.7853981633974483)
|
||||
(if (negative? x)
|
||||
(if (negative? y)
|
||||
(if (or (negative? y) (eqv? y -0.0))
|
||||
(- (atan1 (/ y x)) 3.141592653589793)
|
||||
(- 3.141592653589793 (atan1 (/ y (- x)))))
|
||||
(if (and (zero? x) (zero? y))
|
||||
|
|
Loading…
Add table
Reference in a new issue