summaryrefslogtreecommitdiff
path: root/1205/CH6/EX6.7/S_6_7.sce
blob: 8fa50ec95ca747f78c7885b2964040d6b9e6db5e (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
clc;
//Part 1
printf("By theoritical calculation we getb F_DH=W*cos(theta)/sin(theta)\n");
printf("Therefore result obtained is independant of d\n");
//Given data

a=0.70;//m
theta=60;//degree
theta=theta*%pi/180;//radian, conversion into radian
L=3.20;//m
m=1000;//kg, mass of crate
g=9.81;//m/s^2, acceleration due to gravity

DH=sqrt(a^2+L^2-2*a*L*cos(theta));//m, by cosine rule
W=m*g;//N, wight of crate
W=W/1000;//kN, conversion into kN
//Recalling equation got from theoritical part
EH=L;//m
F_DH=W*DH/EH/tan(theta);//kN, Force exerted by cylinder

printf("Force exerted by each cylinder is F_DH=%.2f kN \n",F_DH);