> nseries() and series() behave the same way for exp(O(x)) (i.e. graceful
> fail in 0.6.7 and error in 0.6.7-git). The difference is that nseries()
> allows us to easily guess the value of n we should put.

Hm? nseries() works in master for me:

>>> exp(O(x)).nseries(x)
1 + O(x)
>>> exp(O(x)).nseries(x,n=6)
1 + O(x)
>>> exp(O(x)).series(x,n=1)
1 + O(x)
>>> exp(O(x)).series(x,n=2)
Traceback (most recent call last):
  File "<console>", line 1, in <module>
  File "sympy/core/expr.py", line 1259, in series
    % (str(n), self))
ValueError: Could not calculate 2 terms for exp(O(x))

I think it's a feature, except that passing no n at all should imho
fail gracefully.

-- 
You received this message because you are subscribed to the Google Groups 
"sympy" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/sympy?hl=en.

Reply via email to