Computers and Technology
Computers and Technology, 27.08.2021 15:50, kim95207

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('%0.2f %0.2f %0.2f' % (your_value1, your_value2, your_value3))
Ex: If the input is:
5.0 6.5 3.2
Then the output is:
2.24 3.30 24.00
my code so far
import math
x = input(int)
y = input(int)
z = input(int)
your_value1 = math. sqrt((x))
your_value2 = abs((y-z))
your_value3 = math. factorial(math. ceil((z)))
print('%0.2f %0.2f %0.2f' % (your_value1, your_value2, your_value3))
returns the error code
Traceback (most recent call last):
File "main. py", line 6, in
your_value1 = math. sqrt((x))
TypeError: must be real number, not str

answer
Answers: 3

Other questions on the subject: Computers and Technology

image
Computers and Technology, 23.06.2019 07:00, Dvrsug8598
You need a quick answer from a coworker. the most effective way to reach your coworker is through a. cloud server b. instant message c. teleconference d. telepresence
Answers: 1
image
Computers and Technology, 23.06.2019 12:00, kp2078
What type of slide show is a dynamic and eye-catching way to familiarize potential customers with what your company has to offer? a. ole b. photo album c. brochure d. office clipboard
Answers: 2
image
Computers and Technology, 23.06.2019 21:00, webbjalia04
Uget brainliest if accurate mary has been given the responsibility of hiring a person for the position of a software testing officer. which management function would mary achieve this responsibility?
Answers: 1
image
Computers and Technology, 24.06.2019 01:00, arturocarmena10
The initial tableau of a linear programming problem is given. use the simplex method to solve it. x 1 x 2 x 3 s 1 s 2 z 1 2 4 1 0 0 8 3 4 1 0 1 0 10 minus3 minus12 1 0 0 1 0 the maximum is nothing when x 1equals nothing, x 2equals nothing, x 3equals nothing, s 1equals3, and s 2equals0. (be sure to simplify to lowest terms if necessary.)
Answers: 2
Do you know the correct 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 in other subjects:

Konu
Computers and Technology, 30.09.2019 08:30