#include "oo/PiFunction.h" namespace functions { namespace oo { /** * Default constructor */ PiFunction::PiFunction () { } /** * A simple linear function. */ double PiFunction::evaluate (double x) { return 4.0 / (1.0 + x * x); } } }