summaryrefslogtreecommitdiff
path: root/2015/CH1/EX1.5/1_5.sce
blob: 908a19752f96d5aa05f7ba43e5997192eebad6e3 (plain)
1
2
3
4
5
6
7
8
9
clc
//initialisation of variables
r=14
g=1.4
x=1.78 //x=v3/v2
//CALCULATIONS
oef=1-(1/14)^(g-1)
def=1-((1/(14)^(g)*1.4))*((x^(g) -1)/(x-1))
printf('otto efficiency is %2f',oef)