Arc Length Of A CurveWe approxmiate the length of the curve
NiMqJi0lJGNvc0c2IyUidEciIiIiIiMhIiI= i + NiMtJSRzaW5HNiMlInRH j + NiMqJiUidEciIiIiIzUhIiI= k 1<t<3
by finding the length of a piecewise linear curve close to the original curve. The curve isrestart:
with(VectorCalculus):
r := t -> <cos(t)/2, sin(t), t/10> ;
a := 1; b := 3;Subdivide the interval 1<t<3 into N parts, h is the length of the subdivision.
The curve is approximated by a piecewise linear curve joining the points r(a), r(a + h), r(a+2h), ....r(a+Nh)=r(b) on the curve. The approximate length of the helix with N subdivisions ish :=(b-a)/N :
segi := r(a+(i+1)*h) - r(a+i*h):
approxlen := Sum( sqrt(segi.segi), i=1..'N' );Taking N=10, we get the approximate length of the helix isN := 100;
evalf(approxlen, 8);Change the value of N above to 100, then 1000, then 10000 etc to get better approximations.Compare this with the length of the curve obtained by the integral formular := <cos(t)/2, sin(t), t/10>;
v := diff(r,t):
speed := sqrt(v.v):
exactlen := Int( speed, t=a..b ):
evalf(exactlen, 8);