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 18:00
Adj has a total of 1075 dance and rock songs on her system. the dance selection is 4 times the size of the rock selection. write a system of equations to represent the situation.
Answers: 1
question
Mathematics, 22.06.2019 03:00
Which of these phrases uses parallelism to create a sad tone?
Answers: 1
question
Mathematics, 22.06.2019 03:00
Your friend, taylor, missed class today and needs some identifying solutions to systems. explain to taylor how to find the solution(s) of any system using its graph.
Answers: 1
question
Mathematics, 22.06.2019 05:30
Point j (-4,-6) and point k (4,4) are located on a coordinate grid. which measurement is closest to the distance between point j and point k in units
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