% This file inputs a final time value and a Tolerance % then calls an adaptive quadrature function to integrate f(t) T = input('Input an end time between 0 and 1: '); TOL = input('Input a tolerance value for desired accuracy: '); t_s = adapquad(f_t,0,T,TOL); disp(['The arc length from t=0 to t= ',num2str(T),' is: ',num2str(t_s)])