-
Jul 14th, 2002, 11:35 PM
#1
Thread Starter
Frenzied Member
Volume of part filled cylinder (On SIDE)
How Can I Find The Area Of The Blue In the Picture
Red Line - Height of water (H)
Yellow Line - Chord
Green - radius of Circle
please dont overly compicate things diffrent color lines are just to helf you understand The Yellow line indicates the fill level of a cylinder on its side. How can I Calculate the volume of the water?
-
Jul 14th, 2002, 11:41 PM
#2
Thread Starter
Frenzied Member
-
Jul 15th, 2002, 01:02 AM
#3
transcendental analytic
Use
writing software in C++ is like driving rivets into steel beam with a toothpick.
writing haskell makes your life easier:
reverse (p (6*9)) where p x|x==0=""|True=chr (48+z): p y where (y,z)=divMod x 13
To throw away OOP for low level languages is myopia, to keep OOP is hyperopia. To throw away OOP for a high level language is insight.
-
Jul 16th, 2002, 12:32 AM
#4
Thread Starter
Frenzied Member
I Made This Function with the formula u gave me and it returns 0
Private Const PI As Long = 3.14
Private Function GetAreaCovered(Height As Long, Radius As Long) As Currency
Dim Tmp As Currency
Tmp = (1 / 3) * PI * Height ^ 2 * (3 * Radius) * Height
End Function
-
Jul 16th, 2002, 11:32 AM
#5
transcendental analytic
are you after the area or the volume?
you forgot to return the value and its not the same function either
Use
writing software in C++ is like driving rivets into steel beam with a toothpick.
writing haskell makes your life easier:
reverse (p (6*9)) where p x|x==0=""|True=chr (48+z): p y where (y,z)=divMod x 13
To throw away OOP for low level languages is myopia, to keep OOP is hyperopia. To throw away OOP for a high level language is insight.
-
Jul 16th, 2002, 12:48 PM
#6
transcendental analytic
are you after the area or the volume?
you forgot to return the value and its not the same function either
Use
writing software in C++ is like driving rivets into steel beam with a toothpick.
writing haskell makes your life easier:
reverse (p (6*9)) where p x|x==0=""|True=chr (48+z): p y where (y,z)=divMod x 13
To throw away OOP for low level languages is myopia, to keep OOP is hyperopia. To throw away OOP for a high level language is insight.
-
Jul 16th, 2002, 04:43 PM
#7
Thread Starter
Frenzied Member
I want the volume of the water inside the cylinder. is this how i would do it?
VB Code:
Private Const PI As Long = 3.14
Private Function GetVolume(Height As Long, Length as Long,Radius As Long) As Currency
Dim Tmp As Currency
Tmp = (1 / 3) * PI * Height ^ 2 * (3 * Radius) * Height
GetVolume = Tmp * Length
End Function
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|