This problem is yummy! :-)
Simple & interesting.
The same as the surface area of a cylinder but without calculating the area of the bottom surface (circle) of the cylinder:
Having finished all 15 problem just to see what is the leading solution looks like. Then I realize smaller size doesn't mean the solution is better, often it is at the price of understand-ability.
Remember, in most cases, you write program for humans not for machines.
The task doesn’t define shape of cake. Imagine it is a deformed semi sphere. Or intersection of cylinder and cone? Many options. Bad task for mathematics.
the ans is 0, because the cake will be eaten.
I need help.I just couldn't use the expressions correctly
calculating surface area except the base area
I do not think this exercise is correct. As one should not put frosting below the cake, the area of the cake to put frost on is the area of the circle on top of it plus the area of the "bent" rectangle on its sides. Thus:
function SA = func_frosting2(r,h)
ARectangle = pi*r*h;
ACircle = pi*r^2;
SA = ARectangle + ACircle;
I think the current solution is misleading
simple and fun.
just tricky one.
Connect Four Win Checker
Back to basics 23 - Triangular matrix
Determine the square root
ベクトル [1 2 3 4 5 6 7 8 9 10] の作成
Crop an Image
Find the Oldest Person in a Room
Solve a System of Linear Equations
Find the Best Hotels
Find the treasures in MATLAB Central and discover how the community can help you!
Choose a web site to get translated content where available and see local events and offers. Based on your location, we recommend that you select: .
You can also select a web site from the following list:
Select the China site (in Chinese or English) for best site performance. Other MathWorks country sites are not optimized for visits from your location.
Contact your local office