blob: 627655a960eba482308aa8285ec030cb4fb5bf4e (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
|
//Given that
m = 61 //in kg
Hi = 45 //in meter
L = 25 //in meter
k = 160 //in N/m
g = 9.8 //in m/s^2
//Sample Problem 8-4
printf("**Sample Problem 8-4**\n")
//Assume that the jumper goes x meter down the bridge
//Using energy conservation energy
s=poly(0,"s")
p = .5*k*(s-25)^2 - m*g*s //equal to 0
x = roots(p)
printf("The height fell down is %fm", x(2))
|