File tree Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Original file line number Diff line number Diff 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
778778instance 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
You can’t perform that action at this time.
0 commit comments