Le lundi 27 avril 2015 08:59:38 UTC+2, Loïc Gouarin a écrit :
>
>
>
> Le dimanche 26 avril 2015 21:03:02 UTC+2, Aaron Meurer a écrit :
>>
>> On Sun, Apr 26, 2015 at 12:27 AM, Loïc Gouarin
>> wrote:
>> > Hi,
>> >
>> > I would like to parse a string expression like that
>> >
>> > from sympy.
Le dimanche 26 avril 2015 21:03:02 UTC+2, Aaron Meurer a écrit :
>
> On Sun, Apr 26, 2015 at 12:27 AM, Loïc Gouarin > wrote:
> > Hi,
> >
> > I would like to parse a string expression like that
> >
> > from sympy.parsing.sympy_parser import parse_expr
> > parse_expr("m[0][0]")
> >
> > But
On Sun, Apr 26, 2015 at 12:27 AM, Loïc Gouarin wrote:
> Hi,
>
> I would like to parse a string expression like that
>
> from sympy.parsing.sympy_parser import parse_expr
> parse_expr("m[0][0]")
>
> But I have an error with 'Symbol' object does not support indexing.
>
> If I do
>
> sympy.Symbol("m[
Hi,
I would like to parse a string expression like that
from sympy.parsing.sympy_parser import parse_expr
parse_expr("m[0][0]")
But I have an error with 'Symbol' object does not support indexing.
If I do
sympy.Symbol("m[0][0]")
everything is ok.
I try to write my own transformation funtion