summaryrefslogtreecommitdiff
path: root/1325/CH6/EX6.8/6_8.sce
blob: e3f0a09197da65c8c433dcdb71da6ff37e7a896f (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
//To find maximum horizontal force that can be transmitted to the pump
clc
stroke=4//in
d=11.5//in
ds=4//in
dp=14//in
theta=%pi
u1=.25
T=350//lb
u2=0.1
k=%e^(u1*theta)
T2=T1/k
Tor=(T1-T2)*(dp/2)//total resisting torque
//total resisting torque is also given by P*(r+2*(cos%pi/6))+u2*R*(ds/2)
//equating and putting values we get the following quadratic equation
p=[1 -1.163D3 3.342D5]
a=roots(p)
printf("\nP=%.1f",a)
printf("\nThe larger of two values is inadmissible. It corresponds to a negative sign in front of the second term on the right hand side of equation (1)")