Ask Your Question
1

Derivative of O(x^0)

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

NullInfinity gravatar image

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

tmonteil gravatar image

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?

edit retag flag offensive close merge delete

1 Answer

Sort by ยป oldest newest most voted
0

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

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()
O(x^1)
sage: g = O(x^0)
sage: g.derivative()
O(x^-1)
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

Stats

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

Seen: 275 times

Last updated: Jan 17 '17