Limit of a symbol to a string

29 views
Skip to first unread message

Gaurav Dhingra

unread,
Mar 29, 2015, 9:32:38 AM3/29/15
to sy...@googlegroups.com
Hi,

>>> from sympy import symbols, limit
>>> x = symbols('x')
>>> a = "apple"
>>> limit(x, x, a)
      apple

I do not know the meaning of the a symbol tending to a string.
Even if it is correct then what is its use or significance.

Aaron Meurer

unread,
Mar 29, 2015, 7:37:52 PM3/29/15
to sy...@googlegroups.com
Some functions convert strings to expressions automatically. It is not
recommended to do this, though. See
https://github.com/sympy/sympy/wiki/Idioms-and-Antipatterns#strings-as-input.

Aaron Meurer
> --
> You received this message because you are subscribed to the Google Groups
> "sympy" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to sympy+un...@googlegroups.com.
> To post to this group, send email to sy...@googlegroups.com.
> Visit this group at http://groups.google.com/group/sympy.
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/sympy/ca46b942-72e5-499b-80b4-2facf89cbd0d%40googlegroups.com.
> For more options, visit https://groups.google.com/d/optout.

Gaurav Dhingra

unread,
Mar 30, 2015, 12:02:18 AM3/30/15
to sy...@googlegroups.com
Thaks @Asmeurer . I understood it.
Reply all
Reply to author
Forward
0 new messages