Function plotter questions: Read function string and display math spelling

Started by
1 comment, last by omgomghilol 17 years, 9 months ago
Hello everybody! Currently, I´m writing a math function plotter for fractal functions and computergraphic fractals. And this plotter should also display the graphical solution of a recursively calculated function, and many more... My first question is related to reading in math function strings. For example: There is a edit box where you can write a math funciton in like this: p+1 = k * p * (1-p) or something, where p+1 means, the next p. however. When I think of stuff like this, suddenly regular expresions come into my mind. Is there any chance to use regular expression in c++? I just know it from php, where it fulfills its duties perferctly. Or is there an other solution for my problem? Yes, and the other problem is, how to display mathematical functions? I´m using win32 api. Thank Alex
Advertisement
Regexes won't help you all the way through.

I believe this might help you.
Boost has a Regex library, however SamLowry is right: for this project, you'll want to use the Spirit Library (which is now also a part of Boost).

This topic is closed to new replies.

Advertisement