diff options
Diffstat (limited to '527/CH2/EX2.1/2_1exam.sce')
-rwxr-xr-x | 527/CH2/EX2.1/2_1exam.sce | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/527/CH2/EX2.1/2_1exam.sce b/527/CH2/EX2.1/2_1exam.sce new file mode 100755 index 000000000..91b6f135f --- /dev/null +++ b/527/CH2/EX2.1/2_1exam.sce @@ -0,0 +1,15 @@ +//Engineering and Chemical Thermodynamics
+//Example 2.1
+//Page no :33
+
+clear ; clc
+z1 = 10 ; //[m]
+z2 = 0 ; //[m],Taking ground as state 2,reference
+v1 = 0 ;
+
+//From conservation of total energy we get
+// (1/2*m*v2^2-1 / 2*m*v1^2)+(m*g*z2 - m*g*z1) = 0
+// 1/2*m*v2^2 - m*g*z1 = 0
+v2 = sqrt(2 * 9.8 * z1) ; //[m/s]
+disp(" Example: 2.1 Page no : 33") ;
+printf('\n Final velocity = %g (m/s) ',v2);
\ No newline at end of file |