mars acceleration of gravity formula code example Example: acceleration due to gravity on mars 3.711 meters per second squared.