summaryrefslogtreecommitdiff
path: root/1226/CH3/EX3.7/EX3_7.sce
blob: 5145aae0298c1ea5a895057e7cc7d5ed1d5fd00f (plain)
1
2
3
4
5
6
7
clc;funcprot(0);//EXAMPLE 3.7
// Initialisation of Variables
etaotto=0.6;............//Efficiency of otto engine
ga=1.5;.................//Ratio of specific heats
//Calculations
r=(1/(1-etaotto))^(1/(ga-1));................//Compression ratio
disp(r,"The compression ratio of the engine is:")