From bd2943ca42013a089975893eb84e1e48cec6a03b Mon Sep 17 00:00:00 2001 From: justanothercatgirl Date: Thu, 5 Sep 2024 11:49:07 +0300 Subject: Initial commit --- libs/libpoly.c | 7 +++++++ 1 file changed, 7 insertions(+) create mode 100644 libs/libpoly.c (limited to 'libs/libpoly.c') diff --git a/libs/libpoly.c b/libs/libpoly.c new file mode 100644 index 0000000..2daa972 --- /dev/null +++ b/libs/libpoly.c @@ -0,0 +1,7 @@ + +#include + +// calculate polynomial +double f(double x) { + return pow(x, 3) - 2*x*x - 10*x + 69; +} -- cgit v1.2.3-70-g09d2