how to optimize a function

welcome to shbcf.ru