// Prototype for Wolfe condition test #include "SteepestDescent.h" float DotProduct(Vec x, Vec y){ int i; float sum=0.0; for(i=0;i c2*DotProduct(p, gradfval) ); } return test2; }