subject

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

ansver
Answers: 1

Another question on Computers and Technology

question
Computers and Technology, 22.06.2019 00:30
Which of the following methods could be considered a “best practice” in terms of informing respondents how their answers to an on-line survey about personal information will be protected? respondents are informed that investigators will try to keep their participation confidential; however, confidentiality cannot be assured. respondents are informed that a research assistant will transfer all the research data to a password-protected computer that is not connected to the internet, via a usb flashdrive. the computer is located in a research team member’s office. the investigator uses the informed consent process to explain her institution’s method for guaranteeing absolute confidentiality of research data. the investigator uses the informed consent process to explain how respondent data will be transmitted from the website to his encrypted database without ever recording respondents’ ip addresses, but explains that on the internet confidentiality cannot be absolutely guaranteed.
Answers: 1
question
Computers and Technology, 22.06.2019 22:20
Avariable of the data type arrays is storing 10 quantities. what is true about these quantities? a. the quantities all have different characteristics. b. the quantities all have the same characteristics. c. five quantities have the same and five have different characteristics. d. it is necessary for all quantities to be integers. e. it is necessary for all quantities to be characters.
Answers: 2
question
Computers and Technology, 22.06.2019 22:30
Alex’s family members live in different parts of the world. they would like to discuss the wedding plans of one of their distant relatives. however, alex wants all the family members to talk to each other simultaneously so that they can make decisions quickly. which mode of internet communication should they use? a. blog b. email c. wiki d. message board e. instant messaging
Answers: 2
question
Computers and Technology, 23.06.2019 06:30
To become an audio technician, the most successful tactics might include the following. (select all that apply). learning how to persuade other people gaining different types of experience in audio technology learning as much as possible about art history establishing a reputation as a reliable professional
Answers: 1
You know the right answer?
Suppose in the year 2102 that evaluating x<0.72 for an input parameter x becomes an important ope...
Questions
question
Mathematics, 15.07.2021 02:50
question
Mathematics, 15.07.2021 02:50
question
Mathematics, 15.07.2021 02:50
Questions on the website: 13722367