源程序为:
import numpyimport mathdef shizi(x):#return 1/2*math.log(x+numpy.sqrt(1+pow(x,2)))return 1/2 * math.log(x + (1 + pow(x, 2))**0.5)x=eval(input("输入:"))print("结果为:",shizi(x))