Comment #11 on issue 3223 by gupta.ha...@gmail.com: degree((x+1)**10000) takes too long
http://code.google.com/p/sympy/issues/detail?id=3223

Can you make it more clear. One thing I understood is that
-e.subs(x,1/x).leadterm(x)[1]
won't be useful when we are asking for the degree when we ask for degree of something that is not a free symbol like exp(x), or x**2.
deg(x**2+3*x,x**2)
[out:]1

not 2
even though s is x**2 it will return the degree of x. But I couldn't understand why deg(exp(x)**2+2*exp(x)+x, x**2) should return x?

I get output as
deg(exp(x)**2+2*exp(x)+x, x**2)
[out:]Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
  File "<stdin>", line 5, in deg
TypeError: 'exp' object does not support indexing

Also, what can be other ways to approach the problem?

--
You received this message because this project is configured to send all issue notifications to this address.
You may adjust your notification preferences at:
https://code.google.com/hosting/settings

--
You received this message because you are subscribed to the Google Groups 
"sympy-issues" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to sympy-issues+unsubscr...@googlegroups.com.
To post to this group, send email to sympy-issues@googlegroups.com.
Visit this group at http://groups.google.com/group/sympy-issues?hl=en.
For more options, visit https://groups.google.com/groups/opt_out.


Reply via email to