diff options
author | priyanka | 2015-06-24 15:03:17 +0530 |
---|---|---|
committer | priyanka | 2015-06-24 15:03:17 +0530 |
commit | b1f5c3f8d6671b4331cef1dcebdf63b7a43a3a2b (patch) | |
tree | ab291cffc65280e58ac82470ba63fbcca7805165 /527/CH2/EX2.1/2_1exam.sce | |
download | Scilab-TBC-Uploads-b1f5c3f8d6671b4331cef1dcebdf63b7a43a3a2b.tar.gz Scilab-TBC-Uploads-b1f5c3f8d6671b4331cef1dcebdf63b7a43a3a2b.tar.bz2 Scilab-TBC-Uploads-b1f5c3f8d6671b4331cef1dcebdf63b7a43a3a2b.zip |
initial commit / add all books
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 |