blob: b52f4b49b7202c8648eaa468f1c225c94c6f3131 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
|
// A Textbook of Fluid Mecahnics and Hydraulic Machines - By R K Bansal
// Chapter 4-Buoyancy and Floatation
//// Problem 4.20
//Given Data Set in the Problem
dens=1000
g=9.81
W=15696
w1=245.25
x=8
theta=4
//Calculations
GM=w1*x/(W*tan (theta/180*%pi))
mprintf("The meta centric height is %f m \n",GM)
|