made functions static to files

*BUG* in CPP lint github action
This commit is contained in:
Krishna Vedala
2020-05-25 23:32:31 -04:00
parent c93f3ef35e
commit b9bb6caa73
6 changed files with 40 additions and 47 deletions

View File

@@ -1,10 +1,11 @@
#include <cmath>
#include <iostream>
float eq(float i) {
static float eq(float i) {
return (std::pow(i, 3) - (4 * i) - 9); // original equation
}
float eq_der(float i) {
static float eq_der(float i) {
return ((3 * std::pow(i, 2)) - 4); // derivative of equation
}