diff options
author | dos-reis <gdr@axiomatics.org> | 2011-03-12 17:04:43 +0000 |
---|---|---|
committer | dos-reis <gdr@axiomatics.org> | 2011-03-12 17:04:43 +0000 |
commit | 52fddea19454dc2b9bcb54c6edd5a4cd4f5765a9 (patch) | |
tree | 4b13ccc6d57c7c1ee615c83615b246c98eae388a /src/algebra/fs2ups.spad.pamphlet | |
parent | 42d38bee45a64edfc12641053e58581c20584363 (diff) | |
download | open-axiom-52fddea19454dc2b9bcb54c6edd5a4cd4f5765a9.tar.gz |
* src/algebra/: Systematically use negative? when comparing for
less than 0.
Diffstat (limited to 'src/algebra/fs2ups.spad.pamphlet')
-rw-r--r-- | src/algebra/fs2ups.spad.pamphlet | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/src/algebra/fs2ups.spad.pamphlet b/src/algebra/fs2ups.spad.pamphlet index 5189d4d2..6014ae65 100644 --- a/src/algebra/fs2ups.spad.pamphlet +++ b/src/algebra/fs2ups.spad.pamphlet @@ -345,7 +345,7 @@ FunctionSpaceToUnivariatePowerSeries(R,FE,Expon,UPS,TRAN,x):_ -- series involves complex numbers return stateProblem("atan","logarithmic singularity") cc : FE := - ord < 0 => + negative? ord => atanFlag = "complex" => return stateProblem("atan","essential singularity") (rn := ratIfCan(ord :: FE)) case "failed" => @@ -612,7 +612,7 @@ FunctionSpaceToUnivariatePowerSeries(R,FE,Expon,UPS,TRAN,x):_ -- check to see if lowest order coefficient is a negative rational negRat? : Boolean := ((rat := ratIfCan coef) case RN) => - (rat :: RN) < 0 => true + negative?(rat :: RN) => true false false logTerm : FE := @@ -634,7 +634,7 @@ FunctionSpaceToUnivariatePowerSeries(R,FE,Expon,UPS,TRAN,x):_ -- If the series has order zero and the constant term a0 of the -- series involves x, the function tries to expand exp(a0) as -- a power series. - (deg := order(ups,1)) < 0 => + negative?(deg := order(ups,1)) => stateProblem("exp","essential singularity") deg > 0 => [exp ups] lc := coefficient(ups,0); xOpList := opsInvolvingX lc @@ -661,7 +661,7 @@ FunctionSpaceToUnivariatePowerSeries(R,FE,Expon,UPS,TRAN,x):_ yCoef := coefficient(y,-1) [monomial(log yCoef,0) + integrate(y - monomial(yCoef,-1)$UPS)] cc : FE := - ord < 0 => + negative? ord => atanFlag = "complex" => return stateProblem("atan","essential singularity") (rn := ratIfCan(ord :: FE)) case "failed" => @@ -696,7 +696,7 @@ FunctionSpaceToUnivariatePowerSeries(R,FE,Expon,UPS,TRAN,x):_ (series := iExprToGenUPS(arg,posCheck?,atanFlag)) case %problem => series ups := series.%series - (deg := order(ups,1)) < 0 => + negative?(deg := order(ups,1)) => stateProblem(fcnName,"essential singularity") deg > 0 => [fcn(ups) :: UPS] lc := coefficient(ups,0); xOpList := opsInvolvingX lc |