如何Python中输出对数函数f(x)

求问如何优化:在一行输入x, x>0,在一行输出结果,函数值输出保留3位小数。函数解析式如下:

img

import math
print(math.sin(0.61087)+((e**2)-15*x)/math.sqrt((x**4)+1)-math.log(7*x))

其中有个错了:e^x ==> math.exp(x)
还有必须一行,import可以用 import('math').函数名

x = float(input())
print("%.3f"%(__import__('math').sin(35*__import__('math').pi/180)+(__import__('math').exp(x)-15*x)/((x**4)+1)**0.5-__import__('math').log(7*x)))

import math
print("%.3f"%((math.sin(0.61087)+((math.e**(x:=eval(input()))-15*x)/math.sqrt(x**4+1))-math.log(7*x))))

想优化哪个方面?