Dear All,
I suspect that sympify is getting confused by python's builtin lambda
and E
So are the following examples bugs? If not, should the documentation
be updated with a warning?
>>> sympify('S*lambda')
Traceback (most recent call last):
File "", line 1, in ?
File "/pythonModules/lib/pyt
On Tue, Apr 1, 2008 at 11:41 AM, Colin Gillespie <[EMAIL PROTECTED]> wrote:
>
> I've just found out that it's not 'E' that's causing the problem, it's
> 'S'.
>
> sympify('S') #works
> sympify('S*X') #doesn't work
That's because S is imported in the sympy module:
In [1]: S
Out[1]: S
In [2]:
I've just found out that it's not 'E' that's causing the problem, it's
'S'.
sympify('S') #works
sympify('S*X') #doesn't work
Cheers
Colin
On Mar 31, 5:29 pm, Colin Gillespie <[EMAIL PROTECTED]> wrote:
> Dear All,
>
> I suspect that sympify is getting confused by python's builtin lambda
> and E
> I created:
>
> http://code.google.com/p/sympy/issues/detail?id=773
>
> anyone feel free to fix it. :)
Many thanks.
Colin
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups
"sympy" group.
To post to this group, send em
On Tue, Apr 1, 2008 at 11:54 AM, Mateusz Paprocki <[EMAIL PROTECTED]> wrote:
>
> Hi Colin,
>
> The problem with 'S' is that it is a singleton factory:
>
> In [8]: sympify('S.Zero')
> Out[8]: 0
>
> In [9]: sympify('S.One')
> Out[9]: 1
>
> So sympify('S*x') can't work:
>
> In [10]: sympify('
Hi Colin,
The problem with 'S' is that it is a singleton factory:
In [8]: sympify('S.Zero')
Out[8]: 0
In [9]: sympify('S.One')
Out[9]: 1
So sympify('S*x') can't work:
In [10]: sympify('S')
Out[10]: S
In [11]: type(_)
Out[11]:
For the similar reason sympify('lambda') does not work:
In [13]