1 2 3 4 5 6 7
#include <math.h> // calculate polynomial double f(double x) { return pow(x, 3) - 2*x*x - 10*x + 69; }