/* Written by Reginald Ford Computes the integral from 0 to endPt of exp(t), which is exp(t). Serves as a template for writing solvers */ #include #include #include #include "pstools.h" using namespace std; #define MAXORDER 170 #define NUMEQS 1 //c[NUMEQS][order+1] double c[1][MAXORDER]; void step(double stepSize, int order) { //build the coefficients for(int i=0;i<=order;i++) { double oip1 = 1.0/(i+1.0);//over i+1 c[0][i+1] = oip1*c[0][i]; } //evaluate the polynomials, and set new initial conditions for(int i=0;iMAXORDER) cout<<"Order is above MAXORDER: "<