aboutsummaryrefslogtreecommitdiff
path: root/src/algebra/fs2expxp.spad.pamphlet
diff options
context:
space:
mode:
authordos-reis <gdr@axiomatics.org>2011-03-12 19:17:32 +0000
committerdos-reis <gdr@axiomatics.org>2011-03-12 19:17:32 +0000
commitc93e84048964194e5674e859d6bd8827010f09f6 (patch)
tree407ca23d232bf3f974550fce0175c49495ef49c0 /src/algebra/fs2expxp.spad.pamphlet
parent52fddea19454dc2b9bcb54c6edd5a4cd4f5765a9 (diff)
downloadopen-axiom-c93e84048964194e5674e859d6bd8827010f09f6.tar.gz
* src/algebra/: Systematically use negative? when comparing for
greater than 0.
Diffstat (limited to 'src/algebra/fs2expxp.spad.pamphlet')
-rw-r--r--src/algebra/fs2expxp.spad.pamphlet6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/algebra/fs2expxp.spad.pamphlet b/src/algebra/fs2expxp.spad.pamphlet
index 15b46ca9..4b549c83 100644
--- a/src/algebra/fs2expxp.spad.pamphlet
+++ b/src/algebra/fs2expxp.spad.pamphlet
@@ -236,7 +236,7 @@ FunctionSpaceToExponentialExpansion(R,FE,x,cen):_
-- converts an integral power to an exponential expansion
(b := iExprToXXP(fcn,posCheck?)) case %problem => b
xxp := b.%expansion
- n > 0 => [xxp ** n]
+ positive? n => [xxp ** n]
-- a Puiseux series will be reciprocated only if n < 0 and
-- numerator of 'xxp' has exactly one monomial
numberOfMonomials(num := numer xxp) > 1 => [xxp ** n]
@@ -345,7 +345,7 @@ FunctionSpaceToExponentialExpansion(R,FE,x,cen):_
negative?(deg := order(ups,1)) =>
-- this "can't happen"
error "exp of function with sigularity"
- deg > 0 => [exp(ups)]
+ positive? deg => [exp(ups)]
lc := coefficient(ups,0); varOpList := opsInvolvingX lc
not opInOpList?("log" :: Symbol,varOpList) => [exp(ups)]
-- try to fix exp(lc) if necessary
@@ -425,7 +425,7 @@ FunctionSpaceToExponentialExpansion(R,FE,x,cen):_
upxs := f :: UPXS
negative? (deg := order(upxs,1)) =>
stateProblem(fcnName,"essential singularity")
- deg > 0 => [fcn(upxs) :: UPXS :: XXP]
+ positive? deg => [fcn(upxs) :: UPXS :: XXP]
lc := coefficient(upxs,0); xOpList := opsInvolvingX lc
null xOpList => [fcn(upxs) :: UPXS :: XXP]
opInOpList?("log" :: SY,xOpList) =>