Programming C, C++, Java, PHP, Ruby, Turing, VB
Computer Science Canada 
Programming C, C++, Java, PHP, Ruby, Turing, VB  

Username:   Password: 
 RegisterRegister   
 Parsing Functions
Index -> Programming, Java -> Java Help
View previous topic Printable versionDownload TopicSubscribe to this topicPrivate MessagesRefresh page View next topic
Author Message
randint




PostPosted: 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
Sponsor
sponsor
DemonWasp




PostPosted: 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
Display posts from previous:   
   Index -> Programming, Java -> Java Help
View previous topic Tell A FriendPrintable versionDownload TopicSubscribe to this topicPrivate MessagesRefresh page View next topic

Page 1 of 1  [ 2 Posts ]
Jump to:   


Style:  
Search: