请问这个怎么写哇?求解答

img

from math import *
#1
a,b,c=1,2,1
x=(-b-sqrt(b*b-4*a*c))/(2*a)
print(x)

#2
x,y,a=1,1,1
z=(x*x+y*y)/(2*a*a)
print(z)

#3
x,y,z=1,1,1
w=(x+y+z)/sqrt(pow(x,3)+pow(y,3)+pow(z,3))
print(w)

#4
a,c,d=1,1,1
x=pow(3+a,2)/(2*c+4*d)
print(x)

#5
x,y=pi,0
z=2*sin((x+y)/2)*cos((x-y)/2)
print(z)


 有帮助请采纳

import  math
(-b+math.sqrt(math.pow(b,2)-4*a*c))/2*a
math.pow(x,2)+math.pow(y,2)/2*math.pow(a,2)
x+y+z/math.sqrt(math.pow(x,3),math.pow(y,3)math.pow(z,3))
math.pow((3+a),2)/2*c+4*d
 2*math.sin((x+y)/2)*math.cos((x-y)/2)

from math import *
a,b,c,d = 1,5,3,4
x,y,z = 1,2,3
# 表达式1
res1 = (-b + sqrt(pow(b,2) - 4 * a * c)) / (2 * a)

# 表达式2
res2 = (pow(x,2) + pow(y,2)) / (2 * pow(a,2))

# 表达式3
res3 = (x + y + z) / sqrt(x ** 3 + y**3 + z**3)

# 表达式4
res4 = (3 + a) ** 2 / (2 * c + 4 * d)

# 表达式5
res5 = 2 * sin((x + y) / 2) * cos((x - y) / 2)


print(res1,res2,res3,res4,res5)

如果觉得答案对你有帮助,请点击下采纳,谢谢~