The FunctionParser library (http://warp.povusers.org/FunctionParser/) is used in O2scl to provide evaluation of functions specified as strings. The source code for this library is included in the O2scl distribution and automatically compiled and installed with O2scl .
The most basic usage is
This will print out the result, 11 to std::cout
.
Constants may also be provided, which are replaced with numerical values in future formulas to be evaluated.
This example will also print 11 to std::cout
.
Documentation generated with Doxygen. Provided under the
GNU Free Documentation License (see License Information).
Hosted at
.