Revert "修改优化计算代码为函数并调整参数"

This reverts commit fc95a21530e517c0f1a47ab8e800980c19a70bfa.