[sympy] Limit of a symbol to a string

2015-03-29 Thread Gaurav Dhingra
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.* -- You received this message because you are subscribed to t

Re: [sympy] Limit of a symbol to a string

2015-03-29 Thread Aaron Meurer
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 On Sun, Mar 29, 2015 at 8:32 AM, Gaurav Dhingra wrote: > Hi, > from sympy import symbols, lim

Re: [sympy] Limit of a symbol to a string

2015-03-29 Thread Gaurav Dhingra
Thaks @Asmeurer . I understood it. On Monday, March 30, 2015 at 5:07:52 AM UTC+5:30, Aaron Meurer wrote: > > 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-inp

[sympy] How to give a Function a latex representation?

2015-03-29 Thread G B
Hi-- I can give a symbol a latex representation with: x1=symbols(r'x_{1}') How do I create a function with a latex representation? Ic=symbols(r'I_{C}',cls=Function) Ic=Function(r'I_{C}') Don't seem to work... They pretty print as strings. Thanks-- -- You received this message because you ar

[sympy] Re: How to give a Function a latex representation?

2015-03-29 Thread G B
Interesting. Function('V_{C}') returns a string (V_{C}) Function('V_{C}')(t) returns proper latex. It must be how it's handled in the printer... On Sunday, March 29, 2015 at 10:13:36 PM UTC-7, G B wrote: > > Hi-- > > I can give a symbol a latex representation with: > > x1=symbols(r'x_{1}')