summaryrefslogtreecommitdiff
path: root/3648/CH9/EX9.11/Ex9_11.sce
blob: aa722b4fd748528640acb85f2c1c2d67b739d080 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
//Example 9_11
clc();
clear;
//To find out what horsepower is required
p=1.29  //Units in Kg/Meter^3
Cd=0.45
af=2   //Units in Meter^2
v=20   //Units in meters/sec
M=1000   //units in Kg
F=(0.5*p*Cd*af*v^2)+((M/1000)*((110+(1.1*v))))   //Units in Newtons
Power=F*v   //Units in Watts
Power=Power/747.3061     //units in Horse Power
reqHPower=Power^2   //unis in Horse power
printf("The required power is=%d hp",reqHPower)
//In text book the answer is printed wrong as 80 Hp the correct answer is 95Hp