summaryrefslogtreecommitdiff
path: root/1991/CH2/EX2.15/15.sce
blob: 32b86559b8db22ab326f5c30500dc87d4ba3f0a1 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
clc
clear
//input
m=2//mass
r=4//radius
v=6//uniform speed
//calculation
w=v/r//angular velocity
f=m*r*w*w//centripetal force
//output
printf("the angular velocity is %3.3f rads^-1",w)
printf("\n the centripetal force is %3.3f N",f)