Re: [sympy] Parse expression with indexing

2015-04-27 Thread Loïc Gouarin
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.

Re: [sympy] Parse expression with indexing

2015-04-26 Thread Loïc Gouarin
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

Re: [sympy] Parse expression with indexing

2015-04-26 Thread Aaron Meurer
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[

[sympy] Parse expression with indexing

2015-04-26 Thread Loïc Gouarin
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