blob: e2cb4b15d0d0fb992215da8d6a3b3a0a45026227 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
|
//Given that
W1 = 3.40 //in rad/s
W2 = 2.00 //in rad/s
rev_taken = 20
//Sample Problem 11-3a
printf("**Sample Problem 11-3a**\n")
angle_traversed = 2*%pi*rev_taken
//Using newton's third equation of motion
//Wf^2 = Wi^2 + 2*alpha*theta
alpha = (W2^2 - W1^2)/(2*angle_traversed)
printf("The angular acceleration during the stop is %frads^2\n", alpha)
//Sample Problem 11-3b
printf("\n**Sample Problem 11-3b**\n")
//Using newton's first equation of motion
time_taken = (W2 - W1)/alpha
printf("The time taken in decreasing the speed is %fsec", time_taken)
|