C++ Mathematical Expression Toolkit (ExprTk) release
Loading...
Searching...
No Matches
Classes | Functions
exprtk_gnuplot.cpp File Reference
#include <cstdio>
#include <iostream>
#include <string>
#include <fstream>
#include <iomanip>
#include "exprtk.hpp"
Include dependency graph for exprtk_gnuplot.cpp:

Go to the source code of this file.

Classes

class  exprtk_gnuplot_fx
 

Functions

int main ()
 

Function Documentation

◆ main()

int main ( )

Definition at line 152 of file exprtk_gnuplot.cpp.

153{
154 exprtk_gnuplot_fx plotter;
155
156 plotter
157 .set_expression("clamp(-1.0,sin(2 * pi * x) + cos(x / 2 * pi),+1.0)")
158 .set_domain(-5,+5)
159 .set_title("ExprTk GNUPlot Example");
160
161 plotter.plot();
162
163 return 0;
164}
exprtk_gnuplot_fx & set_domain(const double min_x, const double max_x)
exprtk_gnuplot_fx & set_expression(const std::string &expression)
exprtk_gnuplot_fx & set_title(const std::string &title)

References exprtk_gnuplot_fx::plot(), exprtk_gnuplot_fx::set_domain(), exprtk_gnuplot_fx::set_expression(), and exprtk_gnuplot_fx::set_title().

Here is the call graph for this function: