Skip to contents

calculate the energy possessed or acquired by an object due to a change in its position when it is present in a gravitational field = mhg

Usage

gravitational_energy(m, h, g = 9.80665)

Arguments

m

mass of the object (kg)

h

height above the earth surface (m)

g

gravity of earth (m/s^2)

Value

GE Gravitational energy of the object

Examples

m <- 2.5
g <- 9.80665
h <- 10
gravitational_energy(m,h,g )
#> [1] 245.1662
245.16
#> [1] 245.16