aboutsummaryrefslogtreecommitdiff
path: root/src/algebra/intpm.spad.pamphlet
diff options
context:
space:
mode:
authordos-reis <gdr@axiomatics.org>2011-03-12 17:04:43 +0000
committerdos-reis <gdr@axiomatics.org>2011-03-12 17:04:43 +0000
commit52fddea19454dc2b9bcb54c6edd5a4cd4f5765a9 (patch)
tree4b13ccc6d57c7c1ee615c83615b246c98eae388a /src/algebra/intpm.spad.pamphlet
parent42d38bee45a64edfc12641053e58581c20584363 (diff)
downloadopen-axiom-52fddea19454dc2b9bcb54c6edd5a4cd4f5765a9.tar.gz
* src/algebra/: Systematically use negative? when comparing for
less than 0.
Diffstat (limited to 'src/algebra/intpm.spad.pamphlet')
-rw-r--r--src/algebra/intpm.spad.pamphlet4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/algebra/intpm.spad.pamphlet b/src/algebra/intpm.spad.pamphlet
index de9c8b35..9d47548f 100644
--- a/src/algebra/intpm.spad.pamphlet
+++ b/src/algebra/intpm.spad.pamphlet
@@ -154,7 +154,7 @@ PatternMatchIntegration(R, F): Exports == Implementation where
da := differentiate(a := l.pma, x)
d := a * (cc := l.pmc) / da
zero? differentiate(d, x) => [EI, a, d]
- comp? or (((u := sign a) case Z) and (u::Z) < 0) =>
+ comp? or (((u := sign a) case Z) and negative?(u::Z)) =>
d := cc * (sa := insqrt(- a)) / da
zero? differentiate(d, x) => [ERF, sa, - d * spi]
[NONE, 0, 0]
@@ -283,7 +283,7 @@ PatternMatchIntegration(R, F): Exports == Implementation where
empty?(l := match1(f, x, t, cc)) => "failed"
mw := first l
zero?(ms := third l) or ((sgs := sign ms) case "failed")=> "failed"
- ((sgz := sign(z := (mw + 1) / ms)) case "failed") or (sgz::Z < 0)
+ ((sgz := sign(z := (mw + 1) / ms)) case "failed") or negative?(sgz::Z)
=> "failed"
mmi := retract(mm := second l)@Z
sgs * (last l) * ms**(- mmi - 1) *