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:")
|