summaryrefslogtreecommitdiff
path: root/1991/CH2/EX2.12/12.sce
blob: bbfd9823fcf9e7d5a5079f0c83337d21671d88da (plain)
1
2
3
4
5
6
7
8
9
10
11
clc
clear
//input
fc=50//force applied by magnet
x=90-20 //angle of force
//calculation
fb=fc*sind(70)//force due to b
fa=fc*cosd(70)//force due to a
//output
printf("the force due to b is %3.3f N",fb)
printf("\nthe force due to b is %3.3f N",fa)