aboutsummaryrefslogtreecommitdiffstats
path: root/libs/libpoly.c
blob: 2daa9729c3e73fb25d2678bfd21c9bac9b3b636f (plain)
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;
}