summaryrefslogtreecommitdiff
path: root/1991/CH2/EX2.10/10.sce
blob: 1b44ac27631486ed7609c530defee96d182d321a (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
clc 
clear
//input magnitude of forces
f1=40
f2=50
//calculation
d=50^2+40^2+2*50*40*cosd(50)//finding the diagonal
r=50^2+40^2+2*50*(40)*cosd(130)//reversing the side and finding diagonlprintf("the resultant is %3.3f",d1)
r1=sqrt(r)//resultant sum
d1=sqrt(d)// resultant when smaller force is subtracted from larger
//output
printf("1. the resultant sum is %3.3f N",d1)
printf("\n 2. the resultant when smaller force is subtracted from larger is %3.3f N",r1)