Program to determine a suitable set of change gears for gear train for a given ratio with ratio error in specified range