%Problem 1 - Write a matlab function that uses adaptive quadrature to
%compute the arc length from t=0 t t = T for a given T <= 1.
clear;
f = @(x)((0.3+7.8*x-14.1*x^2)^2+(0.3+1.8*x-8.1*x^2)^2)^(1/2);
var = arclenquad(.5,f);
sprintf('Arc length from 0 to .5 is %4.5f\n',var)