Lesson 2 of 18
Surface Area of Revolution
Surface Area of Revolution
Rotating around the x-axis creates a surface. Its area is:
Why It Works
Each strip of width wraps into a ribbon of radius and slant height . The ribbon's area is .
Classic Examples
Cylinder on : , so
Cone on : , so:
ight]_0^1 = pisqrt{2} approx 4.4429$$ ### Numerical Approach ```c #define PI 3.14159265358979 for each midpoint x: double fp = (f(x+h) - f(x-h)) / (2*h); sum += f(x) * my_sqrt(1.0 + fp * fp); return 2.0 * PI * sum * dx; ``` ### Your Task Implement `double surface_area(double (*f)(double), double a, double b, int n, double h)`.TCC compiler loading...
Loading...
Click "Run" to execute your code.