[Ometa] ometa first project?: plain text math parser which feeds a
grapher
Stephen Bannasch
stephen.bannasch at deanbrook.org
Thu Dec 3 19:29:55 PST 2009
Here's an idea for a relatively simple project to learn more about ometa.
I'd like to have users enter different forms of math functions, parse the text input and end up with a JavaScript function I
can graph.
For example see this page which is shows an example of entering a JavaScript equation and graphing it with JSXGraph:
http://jsxgraph.uni-bayreuth.de/wiki/index.php/Change_Equation_of_a_Graph
I'm thinking that a relatively simple project to learn more about ometa-js would be enable a user to enter either:
1. sinx(x)*cos(x)
or
2. sinx cosx
The parser would in the end return:
Math.sin(x)*Math.cos(x)
Which would then be graphed.
Does this seem like something I could use ometa-js for?
More information about the OMeta
mailing list