Computers and Technology
Computers and Technology, 15.02.2021 20:40, Shelbs01

Suppose in the year 2102 that evaluating x<0.72 for an input parameter x becomes an important operation to do quickly. As such, CPU manufacturers want to evaluate this operation approximately in hardware as a single x86 operation, f_p72. As a computer engineer, you are tasked with creating the necessary components to execute the f_p72 instruction. Suppose that the function f_hat(x) carries out the f_p72 instruction for a given floating point input x. That is, f_hat(x) evaluates the approximation of x0.72. Write a short program to evaluate the magnitude of the relative error in evaluating 20.72 using f_hat for the input x. f_hat(x) is a function that evaluates an approximation to x0.72 for a given floating point input x. x is a floating point number. Store the magnitude of the relative error in using the approximation f_hat in relative_error.
The setup code gives the following variables:
Name Type Description
f_hat function a function which has the same effect as the fp72 instruction
x a floating point number floating point number
Your code snippet should define the following variables:
Name Type Description
relative_error floating point numbe r the relative error in evaluating x0.72 using f_hat

answer
Answers: 1

Other questions on the subject: Computers and Technology

image
Computers and Technology, 22.06.2019 11:00, paigesyring
How does a policy manual an organization? a. it boost productivity. b. it create awareness in employees about the organization’s values. c. it employees achieve targets. d. it safeguards the organization from liabilities.
Answers: 1
image
Computers and Technology, 23.06.2019 03:30, mem81
How can you repin an image on your pinterest pin board a. click on the "repin" button b. click on the "add pin" button c. click on the "upload a pin" button d. click on the "save pin" button.
Answers: 2
image
Computers and Technology, 23.06.2019 23:30, econsta3
Perform an online search about the booting process of a computer and list all the steps
Answers: 2
image
Computers and Technology, 24.06.2019 17:50, connorwbrown07
Acontact list is a place where you can store a specific contact with other associated information such as a phone number, email address, birthday, etc. write a program that first takes in word pairs that consist of a name and a phone number (both strings). that list is followed by a name, and your program should output that name's phone number.
Answers: 1
Do you know the correct answer?
Suppose in the year 2102 that evaluating x<0.72 for an input parameter x becomes an important ope...

Questions in other subjects: