summaryrefslogtreecommitdiff
path: root/3841/CH7/EX7.4/Ex7_4.sce
blob: b0d45893abfc2a3ea530ebd0bd9b4652f0c9ef3d (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
clear
//compute brake mean effective pressure
//given
T=350.
D=4**0.25
L=5
M=4
//bmep for 4-cycle engine=192*t
bmep=192*(T/(D**2)*L*M)
//bmep for 2-cycle engine
bmep2=bmep/2
printf("\n \n bmep for 4-cycle %.2f psi",bmep)
printf("\n \n bmep for 2-cycle %.2f psi",bmep)