#include "header.h" //Preforms the summation part of the desired equation. // return double Returns the result of the summation of funks. // vector * vecin The vector to preform the funk upon // vector * f The vector to store the partially completed maths in. double sumfunk(vector * vecin, vector * f) //vecin should have size n, f should have size n-2; { int n = vecin->size, i = 0; double result = 0; for (i=0; ielements[i] = funk( vecin->elements[i], vecin->elements[i+1], vecin->elements[i+2]); result += f->elements[i]; } return result; }