C++ Programming GalleryGraphics

Math function parser, with example of 2D function plotter in C++ (SFR)

This program is a demo of how to use GRAFXY.H and RSF.H to plot functions at runtime, i.e. the function is entered into a text string, evaluated by RSF.H and plotted by GRAFXY.H.

Developed by:

JOSE LUIS DE LA CRUZ LAZARO

YACSHA – Software & Desing, since 1999, Lima – Perú
The World of Chaos – EL MUNDO DEL CAOS – Unlimited Programming

You can DOWNLOAD the SOURCE CODE and executable software for FREE from here:

Join The World of Chaos Developer Community😃

Contribute to the project on Github!

HISTORY…

Version 2 – 21-III-2024

  • Update: Porting to VC++ 2017 using winbgi

version 1.3 24-August-2000

  • Changed the name of IFUNCADE.H to RSF.H (Syntactic Function Recognizer).
  • The real function “f” member of CFunCad was modified to accept up to 3 variables.

version 1.2 11-September-1999

  • Modified functions to accept both real variables and complex variables, using overloaded functions.
  • Priority was given to the recognition of the imaginary unit in front of other constants and functions (PI, cos, log …), to speed up calculation processes.
  • Fixed the bug (BUG): That if the string contains an unknown variable it contains any value and then f(x…) yields any value. Such unknown variable is replaced by the value of zero. version 1.1 22-May-1999
  • The function f(…,x,y,z) was adapted to accept up to a maximum of 3 variables

Version 1.01 21-May-1999

  • Original functions were adapted to accept complex variables.
  • Modification of the recognition of constants and functions ( PI, cos, sin … ), in order to shorten the time spent in this process.
  • Added log and tan functions.

Version 1.00 16-May-1999

  • Some errors in the original sources were revised and corrected, and some functions were modified to speed up the evaluation process.

Leave a Reply

Your email address will not be published. Required fields are marked *

Back to top button