From b1f5c3f8d6671b4331cef1dcebdf63b7a43a3a2b Mon Sep 17 00:00:00 2001 From: priyanka Date: Wed, 24 Jun 2015 15:03:17 +0530 Subject: initial commit / add all books --- 23/CH2/EX2.7/Example_2_7.sce | 21 +++++++++++++++++++++ 1 file changed, 21 insertions(+) create mode 100755 23/CH2/EX2.7/Example_2_7.sce (limited to '23/CH2/EX2.7/Example_2_7.sce') diff --git a/23/CH2/EX2.7/Example_2_7.sce b/23/CH2/EX2.7/Example_2_7.sce new file mode 100755 index 000000000..f5f7de919 --- /dev/null +++ b/23/CH2/EX2.7/Example_2_7.sce @@ -0,0 +1,21 @@ +clear; +clc; + +//Example 2.7 +//Caption : Program to find the Enegy Changes in the Process + +//Given values +P=7;//pressure=7bar +m=45;//Mass of cube +mt=23;//mass of piston,piston rod,pan +x=0.5;//Distance moved=0.5m +g=9.8;//Acceleration Due to gravity(m/s^2) + +//Solution + +//Acc to Eqn del_U_sys+del_U_surr+del_PE_surr=0 +del_PE_surr=(m+mt)*g*x; +//ans=del_U_sys+del_U_surr +disp('J',-del_PE_surr,'Energy Changes in the Process') + +//End \ No newline at end of file -- cgit