I'm getting wrong answer?
Show older comments
I'm trying to calculate the volume under x^2+ 1 curve when the curve is rotated around the x axis.This integration is from 0 to 3 with x incrementing by 0.1 using disk method.I did is the following way: l = 0.1;
sum = 0
for index = 1:30;
x = (index-1)*0.1;
y = pi*((x^2+1)^2)*l;
sum = sum + y;
end
clc; I'm getting volume 203.418093.However, the calculator integration gives volume 218.6548.
Accepted Answer
More Answers (0)
Categories
Find more on Fit Postprocessing in Help Center and File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!