subject
Mathematics, 01.09.2021 04:30 cicilee49

Given three floating-point numbers x, y, and z, output x to the power of z, x to the power of (y to the power of z), the absolute value of (x minus y), and the square root of (x to the power of z). Output each floating-point value with two digits after the decimal point, which can be achieved as follows:
print('{:.2f} {:.2f} {:.2f} {:.2f}'.format(your_value1, your_value2, your_value3, your_value4))
Ex: If the input is:
5.0 1.5 3.2
Then the output is:
172.47 361.66 3.50 13.13
My code:
import math
x = float(input('x: '))
y = float(input('y: '))
z = float(input('z: '))
your_value1 = math. pow(x, z)
your_value2 = math. pow(x, y(math. pow(y, z))
your_value3 = math. fabs(x-y)
your_value4= math. sqrt(x, z)
print('{:.2f} {:.2f} {:.2f} {:.2f}'.format(your_value1, your_value2, your_value3, your_value4))
Error code:
File "main. py", line 7 your_value3 = math. fabs(x-y) ^ SyntaxError: invalid syntax
I have no idea if im on the right track, I just need a working pyhton code. Thanks in advance.

ansver
Answers: 1

Another question on Mathematics

question
Mathematics, 21.06.2019 14:50
What is the point-slope form of theequation for the line with a slope of-2 that passes through (1, 4)? a y + 1 = -2(x + 4)b y-1=-2(x-4)c y + 4 = -2(x + 1)d y - 4 = -2(x - 1)
Answers: 1
question
Mathematics, 21.06.2019 20:00
Mat bought a phone for $100. he has to pay $30 per mouth. if he has paid $640 in total, how many mouth has he had the phone?
Answers: 2
question
Mathematics, 21.06.2019 23:10
Point s lies between points r and t on . if rt is 10 centimeters long, what is st? 2 centimeters 4 centimeters 6 centimeters 8 centimeters
Answers: 2
question
Mathematics, 21.06.2019 23:30
Segment wx is shown explain how you would construct a perpendicular bisector of wx using a compass and a straightedge
Answers: 1
You know the right answer?
Given three floating-point numbers x, y, and z, output x to the power of z, x to the power of (y to...
Questions
question
Mathematics, 25.09.2020 18:01
question
Mathematics, 25.09.2020 18:01
question
Mathematics, 25.09.2020 18:01
question
Geography, 25.09.2020 18:01
question
History, 25.09.2020 18:01
Questions on the website: 13722360