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,9 +1,8 @@
#include <cmath>
#include <iostream>
float eq(float y) { return ((3 * y) - (cos(y)) - 2); }
float eqd(float y) { return ((0.5) * ((cos(y)) + 2)); }
static float eq(float y) { return ((3 * y) - (cos(y)) - 2); }
static float eqd(float y) { return ((0.5) * ((cos(y)) + 2)); }
int main() {
float y, x1, x2, x3, sum, s, a, f1, f2, gd;