|
|
вернуться в форумHELP The task is to find a volume of Piramid - volume of cylindr ? CAn you tell me the FORMULA? Re: HELP It is very easy))) double res = sqr(w)*h/3-h*pi*sqr(r)*(w-2*fabs((((y >= x && y >= -x) || (y < x && y < -x)) ? y : x)))/w; Re: HELP What procedure fabs does? Re: HELP abs (absolute value) for float. Re: HELP How can you solve it so easy? Re: HELP Послано ArcSin 16 окт 2007 21:56 It is very easy))) double res = sqr(w)*h/3-h*pi*sqr(r)*(w-2*fabs((((y >= x && y >= -x) || (y < x && y < -x)) ? y : x)))/w; Why is minus? ..w-2*fabs.. |
|
|