diff options
Diffstat (limited to '23/CH2/EX2.1/Example_2_1.sce')
-rwxr-xr-x | 23/CH2/EX2.1/Example_2_1.sce | 33 |
1 files changed, 33 insertions, 0 deletions
diff --git a/23/CH2/EX2.1/Example_2_1.sce b/23/CH2/EX2.1/Example_2_1.sce new file mode 100755 index 000000000..4413217e9 --- /dev/null +++ b/23/CH2/EX2.1/Example_2_1.sce @@ -0,0 +1,33 @@ +clear;
+clc;
+
+//Example 2.1
+//Caption : Program to find Energy in a Waterfall
+
+
+//Given values
+H=100;//height=100m
+M=1;//Mass of water=1Kg
+g=9.8066;//Acceleration due to gravity(m/s^2)
+
+//Solution
+
+//Del(Energy of the system)=0
+//hence,del(U)+del(KE)+del(PE)=0
+
+//(a)
+PE1=M*H*g;//(J)
+disp('J',PE1,'(a)Potential energy of Water at the Top');
+
+//(b)
+del_U=0;
+KE1=0;
+PE2=0;
+KE2=PE1;//(J)
+disp('J',KE2,'(b)Kinetic energy of Water');
+
+//(c)
+del_U=KE2;
+disp('J',del_U,'(c)Change in Internal energy when 1kg Water added');
+
+//End
\ No newline at end of file |