Skip to content

Commit 70f1e4f

Browse files
more vooodoooo!
1 parent 2f640ee commit 70f1e4f

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

src/Constrained/NumOrd.hs

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -764,15 +764,15 @@ instance HasDivision Float where
764764
l' = r * a
765765
in
766766
if l' < l
767-
then r + (l - l') * 2 * signum a
767+
then r + (l - l') * 2 / a
768768
else r
769769

770770
adjustUpperBound u =
771771
let r = u / a
772772
u' = r * a
773773
in
774774
if u < u'
775-
then r - (u' - u) * 2 * signum a
775+
then r - (u' - u) * 2 / a
776776
else r
777777

778778
instance HasDivision Double where
@@ -790,15 +790,15 @@ instance HasDivision Double where
790790
l' = r * a
791791
in
792792
if l' < l
793-
then r + (l - l') * 2 * signum a
793+
then r + (l - l') * 2 / a
794794
else r
795795

796796
adjustUpperBound u =
797797
let r = u / a
798798
u' = r * a
799799
in
800800
if u < u'
801-
then r - (u' - u) * 2 * signum a
801+
then r - (u' - u) * 2 / a
802802
else r
803803

804804
-- | A type that we can reason numerically about in constraints

0 commit comments

Comments
 (0)