summaryrefslogtreecommitdiff
path: root/24/CH7/EX7.3/Example7_3.sce
blob: 6ada35f380722070f4469312e69df15b2f1e82c0 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
//Given that
d = [-3, 0]  //in meter
F = [2, -6]  //in N

//Sample Problem 7-3a
printf("**Sample Problem 7-3a**\n")
W = F * d'
printf("The work done is equal to %dJ\n", W)

//Sample Problem 7-3b
printf("\n**Sample Problem 7-3b**\n")
Ki = 10  //in J
//Using work energy theorem
Kf = Ki + W
printf("The final kinetic energy of the crate is %dJ", Kf)