Re: [sympy] SymPy project ideas?

2012-09-04 Thread Joachim Durchholz
Am 04.09.2012 00:11, schrieb David Li: So perhaps some heuristic for differentiating between various input languages and then interpreting them as Python (Python, TeX, English-like, etc.) could also be an interesting task. Heh. That's simple: - Have a grammar for each syntax that we have, -

Re: [sympy] SymPy project ideas?

2012-09-04 Thread Aaron Meurer
Another thing you could look at is what should be done at the parsing stage and what should be done after the parsing. For example, 2 x, x y, and tan x are all the same syntax as far as the parser is concerned (unless you want to put all predefined names in the grammar itself), but the first two

Re: [sympy] SymPy project ideas?

2012-09-04 Thread David Li
Okay, some bad news - this might not qualify as a science fair project since it doesn't really have an experiment. My teacher will double-check, but he wasn't too sure. However, I would still like to pursue this project as it interests me. On Tuesday, September 4, 2012 11:19:11 AM UTC-7, Aaron

Re: [sympy] SymPy project ideas?

2012-09-04 Thread Chris Smith
On Wed, Sep 5, 2012 at 5:59 AM, David Li li.david...@gmail.com wrote: Okay, some bad news - this might not qualify as a science fair project since it doesn't really have an experiment. My teacher will double-check, but he wasn't too sure. However, I would still like to pursue this project as it

Re: [sympy] SymPy project ideas?

2012-09-04 Thread Joachim Durchholz
Am 05.09.2012 02:14, schrieb David Li: Yes, what I was thinking is that there would be a whitespace expansion step (probably after tokenization) that would convert statements like 2xy into 2 x y and then tokenize again Multiple tokenization steps are usually not worth it. Make it so that

Re: [sympy] SymPy project ideas?

2012-09-04 Thread David Li
Alright, that seems like a good approach. Actually, playing around with the parser, it already seems to parse (but won't evaluate) expressions like 2x: if I add a print statement to show the final list of tokens, sympy.parsing.sympy_parser.parse_expr(2 x y) [(1, 'Integer'), (51, '('), (2,

[sympy] SymPy project ideas?

2012-09-03 Thread David Li
Hello all, As a high school student, I am encouraged to conduct a science fair experiment each year. I became interested in contributing to SymPy through the 2011 Google Code-In project, and for this year, I am interested in somehow working on SymPy for science fair. I reviewed the GSoC 2012

Re: [sympy] SymPy project ideas?

2012-09-03 Thread Aaron Meurer
On Mon, Sep 3, 2012 at 12:31 PM, David Li li.david...@gmail.com wrote: Hello all, As a high school student, I am encouraged to conduct a science fair experiment each year. I became interested in contributing to SymPy through the 2011 Google Code-In project, and for this year, I am interested

Re: [sympy] SymPy project ideas?

2012-09-03 Thread Joachim Durchholz
We would not want to add an entire natural language processing toolkit; SymPy has a rather strict no external dependencies policy because it needs to be installable in installer-unfriendly environments (non-administrator accounts, mobile devices). However, it would be extremely useful if we

Re: [sympy] SymPy project ideas?

2012-09-03 Thread David Li
Alright, thanks for that other thread. I'll review this and discuss with my teacher to come up with a more specific plan. The tokenize module is quite interesting - I guess how Gamma would eventually work is to try to process non-Python syntax but also accept Python expressions? Or perhaps