Parsing Functions
Author |
Message |
randint
|
Posted: Mon Nov 19, 2012 10:12 pm Post subject: Parsing Functions |
|
|
So, as I am learning about single variable real-valued functions and the calculus (derivatives and integrals, and related ordinary differential equations). Is there any way to parse a "function" (as defined in the mathematical sense) such f(x)=<some expression> in Java? Any existing libraries that let you do that? |
|
|
|
|
|
Sponsor Sponsor
|
|
|
DemonWasp
|
Posted: Mon Nov 19, 2012 10:27 pm Post subject: RE:Parsing Functions |
|
|
There are plenty of libraries that work for general parsing (such as ANTLR and about a million others), but they're fairly complicated for the most part. I don't believe there's any libraries to parse a function, though there are libraries to parse Java code, Python code, etc. There may be libraries to parse, for example, MATLAB or Maple input, which might be your best bet.
It looks like Maple might support something of the sort: http://mathdl.maa.org/mathDL/4/?pa=content&sa=viewDocument&nodeId=485&pf=1 |
|
|
|
|
|
|
|