Modular differentiation method for mechanism precision analysis