from math import sqrt
def f(x, y, z):
return round( (x + y + sqrt((x-y)**2 + 4*z**2)) / 2, 2)
print(f(1, 2, 3))
Copyright © 2025 SCHOLAR.TIPS - All rights reserved.
Answers & Comments
from math import sqrt
def f(x, y, z):
return round( (x + y + sqrt((x-y)**2 + 4*z**2)) / 2, 2)
print(f(1, 2, 3))