summaryrefslogtreecommitdiff
path: root/443/CH3/EX3.2
diff options
context:
space:
mode:
Diffstat (limited to '443/CH3/EX3.2')
-rwxr-xr-x443/CH3/EX3.2/3_2.sce10
1 files changed, 10 insertions, 0 deletions
diff --git a/443/CH3/EX3.2/3_2.sce b/443/CH3/EX3.2/3_2.sce
new file mode 100755
index 000000000..78a14a98b
--- /dev/null
+++ b/443/CH3/EX3.2/3_2.sce
@@ -0,0 +1,10 @@
+pathname=get_absolute_file_path('3_2.sce')
+filename=pathname+filesep()+'3_2_data.sci'
+exec(filename)
+//Compression Ratio
+r=(t2/t1)^(1/(y-1))
+//Efficiency of otto cycle
+notto = 1-(t1/t2)
+printf("\n\nResults:\n\n")
+printf("\n\nCompression Ratio: %f\n\n",r)
+printf("\n\nAir Standard Efficiency On Ideal Otto Cycle : %f\n\n",notto*100) \ No newline at end of file