unknown
1970-01-01 00:00:00 UTC
UnivariateTaylorSeries(Expression Integer,x,0)
you should read that it is actually R[[x]] where R is (basically)
allowing anything as an element. What you see above "x x" is the
following: The second x is from the powerseries. The first x is from the
coefficient ring. They are not the same.
The problem is that Axiom allows to construct such confusing things.
You should NEVER put yourself "Expression Integer" into the argument of
UnivariateTaylorSeries or UnivariatePolynomial. And if you see it, you
should be VERY careful.
UTS(R, x, 0) with an R that fits your purpose but does not allow the
symbol x.
A quick workaround for your problem is probably to choose a name of the
variable of your Taylor series that does not appear anywhere else. Say,
for example,
y := taylor(myNowhereElseOccurringSymbol);
Ralf
you should read that it is actually R[[x]] where R is (basically)
allowing anything as an element. What you see above "x x" is the
following: The second x is from the powerseries. The first x is from the
coefficient ring. They are not the same.
The problem is that Axiom allows to construct such confusing things.
You should NEVER put yourself "Expression Integer" into the argument of
UnivariateTaylorSeries or UnivariatePolynomial. And if you see it, you
should be VERY careful.
The same behavior does not occur if the coefficient ring is changed to
(118) -> y := (taylor x) :: UTS(FRAC INT,x,0)
(118) x
Type: UnivariateTaylorSeries(Fraction
Integer,x,0)
(119) -> x*y
2
(119) x
Type: UnivariateTaylorSeries(Fraction
Integer,x,0)
(120) -> coefficient(%,2)
(120) 1
Type: Fraction
Integer
And that is the way to go. You have to build(118) -> y := (taylor x) :: UTS(FRAC INT,x,0)
(118) x
Type: UnivariateTaylorSeries(Fraction
Integer,x,0)
(119) -> x*y
2
(119) x
Type: UnivariateTaylorSeries(Fraction
Integer,x,0)
(120) -> coefficient(%,2)
(120) 1
Type: Fraction
Integer
UTS(R, x, 0) with an R that fits your purpose but does not allow the
symbol x.
A quick workaround for your problem is probably to choose a name of the
variable of your Taylor series that does not appear anywhere else. Say,
for example,
y := taylor(myNowhereElseOccurringSymbol);
Ralf