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 15:30
After being rearranged and simplified, which of the following equations could be solved using the quadratic formula? check all that apply. a. 9% + 3x2 = 14 + x-1 b. -x+ + 4x + 7 = -32-9 c. 5x + 4 = 3x4 - 2 d. 2x2 + x2 + x = 30
Answers: 1
question
Mathematics, 21.06.2019 16:00
If there is no real number solution to the quadratic equation x^2+2x+c=0 what is a possible value of c? 1 -2 0 3
Answers: 2
question
Mathematics, 21.06.2019 19:30
Me find the value of x each figure.
Answers: 1
question
Mathematics, 21.06.2019 22:20
Igure 1 and figure 2 are two congruent parallelograms drawn on a coordinate grid as shown below: 4 quadrant coordinate grid showing two parallelograms. figure 1 has vertices at negative 5, 2 and negative 3, 4 and negative 4, 7 and negative 6, 5. figure 2 has vertices at 5, negative 2 and 7, negative 4 and 6, negative 7 and 4, negative 5. which two transformations can map figure 1 onto figure 2? reflection across the y-axis, followed by reflection across x-axis reflection across the x-axis, followed by reflection across y-axis reflection across the x-axis, followed by translation 10 units right reflection across the y-axis, followed by translation 5 units down
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
Questions on the website: 13722363