summaryrefslogtreecommitdiff
path: root/1226/CH11/EX11.11/EX11_11.sce
diff options
context:
space:
mode:
authorpriyanka2015-06-24 15:03:17 +0530
committerpriyanka2015-06-24 15:03:17 +0530
commitb1f5c3f8d6671b4331cef1dcebdf63b7a43a3a2b (patch)
treeab291cffc65280e58ac82470ba63fbcca7805165 /1226/CH11/EX11.11/EX11_11.sce
downloadScilab-TBC-Uploads-b1f5c3f8d6671b4331cef1dcebdf63b7a43a3a2b.tar.gz
Scilab-TBC-Uploads-b1f5c3f8d6671b4331cef1dcebdf63b7a43a3a2b.tar.bz2
Scilab-TBC-Uploads-b1f5c3f8d6671b4331cef1dcebdf63b7a43a3a2b.zip
initial commit / add all books
Diffstat (limited to '1226/CH11/EX11.11/EX11_11.sce')
-rwxr-xr-x1226/CH11/EX11.11/EX11_11.sce11
1 files changed, 11 insertions, 0 deletions
diff --git a/1226/CH11/EX11.11/EX11_11.sce b/1226/CH11/EX11.11/EX11_11.sce
new file mode 100755
index 000000000..a24862008
--- /dev/null
+++ b/1226/CH11/EX11.11/EX11_11.sce
@@ -0,0 +1,11 @@
+clc;funcprot(0);//EXAMPLE 11.11
+// Initialisation of Variables
+a=4500;.................//Altitude
+afr=14;...............//Air fuel ratio at sea level
+t1=25;...........//Temperature at sea level in Celsius
+p1=1.013;...........//Pressure at sea level in bar
+//Calculations
+t2=t1-(0.0064*a);.........................//Temperature at the given altitude using the given formula in Celsius
+p2=p1/(10^(a/19300));....................//Pressure at the given altitude using the given formula in bar
+afr2=afr*sqrt((p2*(t1+273))/(p1*(t2+273)));...................//Air fuel ratio at the altitude
+disp(afr2,"Air fuel ratio at the altitude:")