aboutsummaryrefslogtreecommitdiff
path: root/src/algebra/transsolve.spad.pamphlet
diff options
context:
space:
mode:
authordos-reis <gdr@axiomatics.org>2009-02-04 11:43:05 +0000
committerdos-reis <gdr@axiomatics.org>2009-02-04 11:43:05 +0000
commitc76dce6ee2f6b6830f1087f83bf452974ce3bf09 (patch)
tree40e02b9b2ed5af7e36ebf581f5d58d4557ef94bf /src/algebra/transsolve.spad.pamphlet
parent65045e7285ed629a68ae63529fae61bbcf7bf890 (diff)
downloadopen-axiom-c76dce6ee2f6b6830f1087f83bf452974ce3bf09.tar.gz
* algebra/algfunc.spad.pamphlet: Quote symbols.
* algebra/combfunc.spad.pamphlet: Likewise. * algebra/drawopt.spad.pamphlet: Likewise. * algebra/efstruc.spad.pamphlet: Likewise. * algebra/elemntry.spad.pamphlet: Likewise. * algebra/expr.spad.pamphlet: Likewise. * algebra/exprode.spad.pamphlet: Likewise. * algebra/float.spad.pamphlet: Likewise. * algebra/gaussian.spad.pamphlet: Likewise. * algebra/intaux.spad.pamphlet: Likewise. * algebra/irexpand.spad.pamphlet: Likewise. * algebra/laplace.spad.pamphlet: Likewise. * algebra/limitps.spad.pamphlet: Likewise. * algebra/liouv.spad.pamphlet: Likewise. * algebra/list.spad.pamphlet: Likewise. * algebra/lmdict.spad.pamphlet: Likewise. * algebra/manip.spad.pamphlet: Likewise. * algebra/matcat.spad.pamphlet: Likewise. * algebra/matrix.spad.pamphlet: Likewise. * algebra/mkfunc.spad.pamphlet: Likewise. * algebra/mset.spad.pamphlet: Likewise. * algebra/oct.spad.pamphlet: Likewise. * algebra/op.spad.pamphlet: Likewise. * algebra/patmatch1.spad.pamphlet: Likewise. * algebra/pattern.spad.pamphlet: Likewise. * algebra/quat.spad.pamphlet: Likewise. * algebra/sets.spad.pamphlet: Likewise. * algebra/transsolve.spad.pamphlet: Likewise. * algebra/vector.spad.pamphlet: Likewise.
Diffstat (limited to 'src/algebra/transsolve.spad.pamphlet')
-rw-r--r--src/algebra/transsolve.spad.pamphlet58
1 files changed, 30 insertions, 28 deletions
diff --git a/src/algebra/transsolve.spad.pamphlet b/src/algebra/transsolve.spad.pamphlet
index e9071b02..d3c23777 100644
--- a/src/algebra/transsolve.spad.pamphlet
+++ b/src/algebra/transsolve.spad.pamphlet
@@ -196,7 +196,7 @@ TransSolvePackage(R) : Exports == Implementation where
-- This function was suggested by Manuel Bronstein as a simpler
-- alternative to normalize.
simplifyingLog(f:RE):RE ==
- (u:=isExpt(f,"exp"::Symbol)) case Record(var:Kernel RE,exponent:Integer) =>
+ (u:=isExpt(f,'exp)) case Record(var:Kernel RE,exponent:Integer) =>
rec := u::Record(var:Kernel RE,exponent:Integer)
rec.exponent * first argument(rec.var)
log f
@@ -412,46 +412,46 @@ TransSolvePackage(R) : Exports == Implementation where
error "This should never happen"
funcinv(k:RE,l:RE) : Union(RE,"failed") ==
- is?(k, "sin"::Symbol) => asin(l)
- is?(k, "cos"::Symbol) => acos(l)
- is?(k, "tan"::Symbol) => atan(l)
- is?(k, "cot"::Symbol) => acot(l)
- is?(k, "sec"::Symbol) =>
+ is?(k,'sin) => asin(l)
+ is?(k,'cos) => acos(l)
+ is?(k,'tan) => atan(l)
+ is?(k,'cot) => acot(l)
+ is?(k,'sec) =>
l = 0 => "failed"
asec(l)
- is?(k, "csc"::Symbol) =>
+ is?(k,'csc) =>
l = 0 => "failed"
acsc(l)
- is?(k, "sinh"::Symbol) => asinh(l)
- is?(k, "cosh"::Symbol) => acosh(l)
- is?(k, "tanh"::Symbol) => atanh(l)
- is?(k, "coth"::Symbol) => acoth(l)
- is?(k, "sech"::Symbol) => asech(l)
- is?(k, "csch"::Symbol) => acsch(l)
- is?(k, "atan"::Symbol) => tan(l)
- is?(k, "acot"::Symbol) =>
+ is?(k,'sinh) => asinh(l)
+ is?(k,'cosh) => acosh(l)
+ is?(k,'tanh) => atanh(l)
+ is?(k,'coth) => acoth(l)
+ is?(k,'sech) => asech(l)
+ is?(k,'csch) => acsch(l)
+ is?(k,'atan) => tan(l)
+ is?(k,'acot) =>
l = 0 => "failed"
cot(l)
- is?(k, "asin"::Symbol) => sin(l)
- is?(k, "acos"::Symbol) => cos(l)
- is?(k, "asec"::Symbol) => sec(l)
- is?(k, "acsc"::Symbol) =>
+ is?(k,'asin) => sin(l)
+ is?(k,'acos) => cos(l)
+ is?(k,'asec) => sec(l)
+ is?(k,'acsc) =>
l = 0 => "failed"
csc(l)
- is?(k, "asinh"::Symbol) => sinh(l)
- is?(k, "acosh"::Symbol) => cosh(l)
- is?(k, "atanh"::Symbol) => tanh(l)
- is?(k, "acoth"::Symbol) =>
+ is?(k,'asinh) => sinh(l)
+ is?(k,'acosh) => cosh(l)
+ is?(k,'atanh) => tanh(l)
+ is?(k,'acoth) =>
l = 0 => "failed"
coth(l)
- is?(k, "asech"::Symbol) => sech(l)
- is?(k, "acsch"::Symbol) =>
+ is?(k,'asech) => sech(l)
+ is?(k,'acsch) =>
l = 0 => "failed"
csch(l)
- is?(k, "exp"::Symbol) =>
+ is?(k,'exp) =>
l = 0 => "failed"
simplifyingLog l
- is?(k, "log"::Symbol) =>
+ is?(k,'log) =>
if R has complex and R has ConvertibleTo(C F) then
-- We will check to see if the imaginary part lies in [-Pi,Pi)
ze : Expression C INT F
@@ -464,7 +464,7 @@ TransSolvePackage(R) : Exports == Implementation where
"failed"
else -- R not Complex or something which doesn't map to Complex Floats
exp l
- is?(k, "%power"::Symbol) =>
+ is?(k,'%power) =>
(t:=normalize(l)) = 0 => "failed"
log t
l
@@ -652,6 +652,8 @@ TransSolvePackageService(R) : Exports == Implementation where
<<license>>=
--Copyright (c) 1991-2002, The Numerical ALgorithms Group Ltd.
--All rights reserved.
+--Copyright (C) 2007-2009, Gabriel Dos Reis.
+--All rights reserved.
--
--Redistribution and use in source and binary forms, with or without
--modification, are permitted provided that the following conditions are