Request for suggestions: algebraic equations in Free42

02232021, 08:36 PM
Post: #48




RE: Request for suggestions: algebraic equations in Free42
This isn't a suggestion. More of a story.
I have a mathematical software library that can take a function, and do things like find roots, approximate numerical derivatives, integrate, find extrema, etc... The whole thing is in LISP, and I wanted to be able to feed it functions defined as formulas using traditional infix notation. What did I do? I wrote another function that would take a string containing an equation, and then burp out a LISP function that implements the equation. LISP is funny like that. It is super easy for a program to program itself. Seems like that would be pretty easy for Free42. That is to say use Dijkstra's algorithm to convert the equation to postfix (RPN), add a label at the top & some MVARs. Done. 

« Next Oldest  Next Newest »

User(s) browsing this thread: 1 Guest(s)