g=@(a,b,c,d)pi*a^2*(4/3*a*~b+b*~c)+a*b*c*~d+d/12*(4*a^2*b^2-(a^2+b^2-c^2)^2)^.5; g(4,0,0,0) g(5.5,2.23,0,0) g(3.5,4,5,0) g(4,13,15,3)
Standard input is empty
ans = 268.08 ans = 211.92 ans = 70 ans = 24
The brand new service which powers Ideone!
Widget for compiling and running the source code in a web browser!