%Use Newton's Method to find the specific point t where the arc length will
%equal the supplied percentage
%Input: Percentage, Tolerance
%Output: time point
function t = newtarclen(len, tol)
f = @(x)((0.3+7.8*x-14.1*x^2)^2+(0.3+1.8*x-8.1*x^2)^2)^(1/2);
totlen = arclenquad(1,f);
tol_val = 1;
pos = .5;
pos1 = 0;
while tol_val > tol
    posLen = arclenquad(pos,f);
    pos1 = pos - (posLen-len*totlen)/f(pos);
    pos = pos1;
    tol_val = abs(posLen-len*totlen);
end
t = pos1;
end