# Revision history [back]

### 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?

 2 retagged slelievre 14559 ●16 ●136 ●287 http://carva.org/samue...

### 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?