summaryrefslogtreecommitdiff
path: root/2837/CH18/EX18.1/Ex18_1.sce
blob: 7fc4c1a4ec4d0ac9f0f8e07fc3b07c8333ae3c02 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
clc
clear
//Initalization of variables
q=200 //cfm
p2=90 //psia
p1=14.5 //psia
n=1.36
//calculations
hpp=n/(n-1) *144*p1*q/33000 *(1- (p2/p1))^((n-1)/n)
//results
printf("Theoretical horse power required = %.1f hp",hpp)
disp("The answer given in textbook is wrong. Please verify with a calculator")