gear ratio function

version 1