You do not have permission to delete messages in this group
Copy link
Report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to sympy
I see this error when try to calculate limit of (-1)^x /sqrt(x) as x approaches infinity.
Can somebody explain me what is the problem here?
Kalevi Suominen
unread,
Sep 7, 2015, 3:52:12 AM9/7/15
Reply to author
Sign in to reply to author
Forward
Sign in to forward
Delete
You do not have permission to delete messages in this group
Copy link
Report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to sympy
On Monday, September 7, 2015 at 9:37:58 AM UTC+3, Paul Royik wrote:
I see this error when try to calculate limit of (-1)^x /sqrt(x) as x approaches infinity.
Can somebody explain me what is the problem here?
``(-1)^x`` is equal to ``exp(pi*I*x)``. As the function has no serial expansion at infinity, SymPy attempts to use Gruntz' algorithm. It is intended tor real functions, and SymPy assumes that everything is real. It knows that ``pi`` is real and positive and the same is assumed of ``x``. That leaves just one problem: what is the sign of I.
Actually, there is currently no algorithm in SymPy capable of computing the limit (which is 0 as ``x`` tends to ``oo`` on the real line),
Paul Royik
unread,
Sep 7, 2015, 1:37:55 PM9/7/15
Reply to author
Sign in to reply to author
Forward
Sign in to forward
Delete
You do not have permission to delete messages in this group
Copy link
Report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to sympy
Thank you.
Aaron Meurer
unread,
Sep 8, 2015, 4:21:04 PM9/8/15
Reply to author
Sign in to reply to author
Forward
Sign in to forward
Delete
You do not have permission to delete messages in this group
Copy link
Report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to sy...@googlegroups.com
You can compute the limit by expanding the real and imaginary parts:
In [19]: x = Symbol('x', real=True, positive=True)