summaryrefslogtreecommitdiff
path: root/1991/CH2/EX2.11/11.sce
blob: 9ab59733c0cb09d9000438a73db8a20ef0eb82b0 (plain)
1
2
3
4
5
6
7
8
9
10
clc
clear
//input
v=380//velocity
//calculation
vh=v*cosd(60)//horizontal component
vv=v*sind(60)//vertical component
//output
printf("the horizontal component is %3.3f ms^-1",vh)
printf("\nthe vertical component is %3.3f ms^-1",vv)