a calculator program for mechanics formula