Mathematics    

Example: Computing the Length of a Curve

You can use quad or quadl to compute the length of a curve. Consider the curve parameterized by the equations

where .

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

The function hcurve computes the integrand

Integrate this function with a call to quad

The length of this curve is about 17.2.


  Numerical Integration (Quadrature) Example: Double Integration