summaryrefslogtreecommitdiff
path: root/3845/CH15/EX15.2
diff options
context:
space:
mode:
authorprashantsinalkar2017-10-10 12:27:19 +0530
committerprashantsinalkar2017-10-10 12:27:19 +0530
commit7f60ea012dd2524dae921a2a35adbf7ef21f2bb6 (patch)
treedbb9e3ddb5fc829e7c5c7e6be99b2c4ba356132c /3845/CH15/EX15.2
parentb1f5c3f8d6671b4331cef1dcebdf63b7a43a3a2b (diff)
downloadScilab-TBC-Uploads-7f60ea012dd2524dae921a2a35adbf7ef21f2bb6.tar.gz
Scilab-TBC-Uploads-7f60ea012dd2524dae921a2a35adbf7ef21f2bb6.tar.bz2
Scilab-TBC-Uploads-7f60ea012dd2524dae921a2a35adbf7ef21f2bb6.zip
initial commit / add all books
Diffstat (limited to '3845/CH15/EX15.2')
-rw-r--r--3845/CH15/EX15.2/Ex15_2.sce19
1 files changed, 19 insertions, 0 deletions
diff --git a/3845/CH15/EX15.2/Ex15_2.sce b/3845/CH15/EX15.2/Ex15_2.sce
new file mode 100644
index 000000000..e8ab459fe
--- /dev/null
+++ b/3845/CH15/EX15.2/Ex15_2.sce
@@ -0,0 +1,19 @@
+//Example 15.2
+//See Figure 15.12 (b)
+P_AB=1.50*10^6;//Pressure along path AB (N/m^2)
+delta_V_AB=500*10^-6;//Volume change along path AB (m^3)
+W_AB=P_AB*delta_V_AB;//Work along path AB (J)
+W_BC=0;//Work along isochoric path BC is zero as delta_V_BC=0, (J)
+P_CD=2*10^5;//Pressure along path CD (N/m^2)
+delta_V_CD=-500*10^-6;//Volume change along path CD (m^3)
+W_CD=P_CD*delta_V_CD;//Work along path CD (J)
+W_DA=0;//Work along isochoric path DA is zero as delta_V_DA=0, (J)
+W=W_AB+W_BC+W_CD+W_DA;//Total work (J)
+printf('a.Total work = %0.1f J',W)
+area=(P_AB-P_CD)*delta_V_AB;//Area inside the rectangle (J)
+printf('\nb.Area inside the rectangle ABCDA = %0.1f J',area)
+if area==W
+ printf('\nArea = %0.1fJ = W',area)
+end
+//Openstax - College Physics
+//Download for free at http://cnx.org/content/col11406/latest