Example: Computing the Length of a Curve
You can use
quadl to compute the length of a curve. Consider the curve parameterized by the equations
A three-dimensional plot of this curve is
The arc length formula says the length of the curve is the integral of the norm of the derivatives of the parameterized equations
hcurve computes the integrand
Integrate this function with a call to
The length of this curve is about 17.2.
|Numerical Integration (Quadrature)||Example: Double Integration|
© 1994-2005 The MathWorks, Inc.