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 13:00
Which of the following situations represents a linear relationship? a. theresa increases the distance she runs by 0.1 miles every week. b. the volume of a box depends on the length of box. c. the amount of money in a bank account increases by 1 percent each year. d. the population of a town doubles every 5 years.
Answers: 3
question
Mathematics, 21.06.2019 20:00
Pepe and leo deposits money into their savings account at the end of the month the table shows the account balances. if there pattern of savings continue and neither earns interest nor withdraw any of the money , how will the balance compare after a very long time ?
Answers: 1
question
Mathematics, 21.06.2019 20:40
Ineed someone to me answer my question i have to have this done and knocked out
Answers: 2
question
Mathematics, 21.06.2019 23:50
What is 0.000008 meters in scientific notation
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, 15.04.2021 21:20
Questions on the website: 13722363