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 /2168/CH3/EX3.26 | |
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 '2168/CH3/EX3.26')
-rwxr-xr-x | 2168/CH3/EX3.26/Chapter3_example26.sce | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/2168/CH3/EX3.26/Chapter3_example26.sce b/2168/CH3/EX3.26/Chapter3_example26.sce new file mode 100755 index 000000000..dfb4a3df9 --- /dev/null +++ b/2168/CH3/EX3.26/Chapter3_example26.sce @@ -0,0 +1,14 @@ +clc
+clear
+//Input data
+r=7//Compression ratio
+v=1//Specific heat at constant volume increases by 1 percent
+g=1.4//Ratio of specific heats
+
+//Calculations
+e=(1-(1/r^(g-1)))//Air standard efficiency
+dee=-(((1-e)*(g-1)*log(r)*(v/100))/e)*100//Change in efficiency to the original efficiency
+x=-(dee)//For Output purpose
+
+//Output
+printf('Percentage change is efficiency is %3.2f percent i.e., a decrease of %3.2f percent',dee,x)
|