Im trying to evaluate the volume of a cone in cartesian coordinates, but somehow matlab is having trouble in evaluating the second integral, it shows a weird output with hypergeom and piecewise.
% code
syms x y z r h % radius r and height h
firstInt = int(1,z,h/r*sqrt(x^2+y^2),h);SecondInt = int(FirstInt,y,-sqrt(r^2-x^2),sqrt(r^2-x^2));ThirdInt = int(SecondInt,x,-r,r);
Best Answer