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 /1226/CH11/EX11.11/EX11_11.sce | |
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 '1226/CH11/EX11.11/EX11_11.sce')
-rwxr-xr-x | 1226/CH11/EX11.11/EX11_11.sce | 11 |
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:")
|