Ask Your Question

Derivative of O(x^0)

asked 2017-01-15 15:16:30 +0200

NullInfinity gravatar image

updated 2023-01-09 23:59:41 +0200

tmonteil gravatar image

Consider a power series

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

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

f = O(x^0)

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

edit retag flag offensive close merge delete

1 Answer

Sort by ยป oldest newest most voted

answered 2017-01-17 12:20:19 +0200

slelievre gravatar image

This is indeed a bug! Thanks for reporting it! What version of Sage were you using?

I can reproduce the bug in Sage 7.4 using PowerSeriesRing instead of PowerSeries:

sage: R.<x> = PowerSeriesRing(SR)
sage: f = 1 + O(x^2)
sage: f.derivative()
sage: g = O(x^0)
sage: g.derivative()
edit flag offensive delete link more

Your Answer

Please start posting anonymously - your entry will be published after you log in or create a new account.

Add Answer

Question Tools

1 follower


Asked: 2017-01-15 15:16:30 +0200

Seen: 218 times

Last updated: Jan 17 '17