This is a temporary page on Pythonica, a symbolic mathematics program for Python. I'm trying to write some bugfixes, so this web page will serve as a small log of what I'm trying.
dyoo@einfall:~/pythonica/src$ python PythonicaParser.py This is a test harness for PythonicaParser. Please enter expressions at the prompt. To quit, please type 'quit'. [PythonicaParser] >>> x*5 - 6x / 2 -[*[x, 5], *[6, /[x, 2]]] [PythonicaParser] >>> 2x *[2, x] [PythonicaParser] >>> % / 7 + x +[/[%, 7], x] [PythonicaParser] >>> x + 6 +[x, 6] [PythonicaParser] >>> 2*3+2^2/3 +[*[2, 3], /[^[2, 2], 3]]Just a little bit more work, and I think it will be ready to be used with Pythonica.
>>> 2*3+2^2/3 ['Expression', ['Term', ['Exponential', ['Factor', 'NUMBER', '2'], None], ['Term1', '*', ['Exponential', ['Factor', 'NUMBER', '3'], None], None]], ['Expression1', '+', ['Term', ['Exponential', ['Factor', 'NUMBER', '2'], ['Exponential1', '^', ['Exponential', ['Factor', 'NUMBER', '2'], None]]], ['Term1', '/', ['Exponential', ['Factor', 'NUMBER', '3'], None], None]], None]]
Email any questions to dyoo@hkn.eecs.berkeley.edu. Thank you!
Back to main.