The speed is then obtained directly from the conservation of energy, i.e. mv2/2=mg h. At any given part of the frictionless roller coaster, the centripetal acceleration is thus given by ac= v2/r = 2gh/r where h is the distance from the highest point of the roller coasters and r is the local radius of curvature.