![subject](/tpl/images/cats/mat.png)
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](/tpl/images/cats/User.png)
Answers: 1
Another question on Mathematics
![question](/tpl/images/cats/mat.png)
Mathematics, 21.06.2019 15:10
Two lines that do not intersect are skew. always sometimes or never
Answers: 1
![question](/tpl/images/cats/mat.png)
![question](/tpl/images/cats/mat.png)
Mathematics, 22.06.2019 01:00
Is experimental probibilty the same as the observed frequency in math? i need the answer asap!
Answers: 1
![question](/tpl/images/cats/mat.png)
Mathematics, 22.06.2019 02:00
Two sides of a right triangle measure 2 units and 4 units. what is the area of the square that shares a side with the third side of the triangle?
Answers: 2
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](/tpl/images/cats/himiya.png)
Chemistry, 09.06.2021 17:20
![question](/tpl/images/cats/istoriya.png)
History, 09.06.2021 17:20
![question](/tpl/images/cats/mat.png)
Mathematics, 09.06.2021 17:20
![question](/tpl/images/cats/istoriya.png)
![question](/tpl/images/cats/istoriya.png)
![question](/tpl/images/cats/mat.png)
![question](/tpl/images/cats/mat.png)
Mathematics, 09.06.2021 17:20
![question](/tpl/images/cats/biologiya.png)
![question](/tpl/images/cats/mat.png)
Mathematics, 09.06.2021 17:20
![question](/tpl/images/cats/mat.png)
Mathematics, 09.06.2021 17:20
![question](/tpl/images/cats/mat.png)
![question](/tpl/images/cats/biologiya.png)
![question](/tpl/images/cats/mat.png)
![question](/tpl/images/cats/mat.png)
Mathematics, 09.06.2021 17:20
![question](/tpl/images/cats/mat.png)
![question](/tpl/images/cats/en.png)
![question](/tpl/images/cats/biologiya.png)
Biology, 09.06.2021 17:20
![question](/tpl/images/cats/mat.png)
Mathematics, 09.06.2021 17:20
![question](/tpl/images/cats/mat.png)
Mathematics, 09.06.2021 17:20
![question](/tpl/images/cats/mat.png)
Mathematics, 09.06.2021 17:20