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 /944/CH3/EX3.1 | |
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 '944/CH3/EX3.1')
-rwxr-xr-x | 944/CH3/EX3.1/example3_1_TACC.sce | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/944/CH3/EX3.1/example3_1_TACC.sce b/944/CH3/EX3.1/example3_1_TACC.sce new file mode 100755 index 000000000..174d4cbda --- /dev/null +++ b/944/CH3/EX3.1/example3_1_TACC.sce @@ -0,0 +1,16 @@ +//example 3.1
+
+clear;
+clc;
+
+//given:
+V1=14;//initial volume of cylinder in m3
+V2=9;//final volume of cylinder in m3
+P=2000;//pressure during the operation in N/m2
+U=(-6000);//internal energy of the system in J
+
+//to find energy transfered in form of heat:
+W=-P*(V2-V1);//work done during the operation in J
+Q=U-W;//energy tranfered in form of heat in J
+printf("energy tranfered in form of heat is %f J",Q);
+
\ No newline at end of file |