Ask Your Question

NullInfinity's profile - activity

2017-01-17 12:12:44 +0200 received badge  Student (source)
2017-01-17 10:08:55 +0200 asked a question Derivative of O(x^0)

Consider a power series

R.<x> = PowerSeries(SR)
f = 1 + O(x^2)
f.derivative()

This gives us O(x^1) as we would expect. However, if we do

f = O(x^0)
f.derivative()

we get O(x^-1) instead of O(x^0) again. Is this a bug or am I missing something?

2017-01-17 10:08:54 +0200 asked a question Power Series with Symbolic Coefficients

I am trying to obtain a series solution to a differential equation. My hope was to substitute a power series with unknown coefficients into the differential equation to obtain a recursion relation for the coefficients. However, it seems I cannot create a power series with symbolic coefficients. For example:

var('C')
R.<x> = PowerSeriesRing(CC)
4 + O(x) # fine
C + O(x) # error

In particular,

TypeError: unsupported operand parent(s) for '+': 'Symbolic Ring' and 'Power Series Ring in x over Complex Field with 53 bits of precision'

So, my question is, can I define a power series with symbolic coefficients?