summaryrefslogtreecommitdiff
path: root/2090/CH11/EX11.1/Chapter11_example1.sce
diff options
context:
space:
mode:
Diffstat (limited to '2090/CH11/EX11.1/Chapter11_example1.sce')
-rwxr-xr-x2090/CH11/EX11.1/Chapter11_example1.sce15
1 files changed, 15 insertions, 0 deletions
diff --git a/2090/CH11/EX11.1/Chapter11_example1.sce b/2090/CH11/EX11.1/Chapter11_example1.sce
new file mode 100755
index 000000000..0307b2e18
--- /dev/null
+++ b/2090/CH11/EX11.1/Chapter11_example1.sce
@@ -0,0 +1,15 @@
+clc
+clear
+//Input data
+nsc=75;//The scavenging efficiency of the two stroke engine in percent
+ns=20;//The scavenging efficiency is increased by in percent
+
+//Calculations
+Rsc=log(1/(1-(nsc/100)));//The scavenging ratio for normal efficiency
+nsc1=(nsc/100)+((nsc/100)*(ns/100));//For 20% increase in scavenging efficiency
+Rsc1=log(1/(1-(nsc1)));//The scavenging ratio for 20% more efficiency
+Rscr=[(Rsc1-Rsc)/Rsc]*100;//Percentage increase in scavenging ratio in persent
+
+//Output
+printf('The percentage change in the scavenging ratio = %3.1f percent ',Rscr)
+