Compute gravitational potential energy from mass, gravity and height with E_p = mgh, referenced to a chosen datum.