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 19:20
Write a program that reads a file consisting of students’ test scores in the range 0–200. it should then determine the number of students having scores in each of the following ranges: 0–24, 25–49, 50–74, 75–99, 100–124, 125–149, 150–174, and 175–200. output the score ranges and the number of students. (run your program with the following input data: 76, 89, 150, 135, 200, 76, 12, 100, 150, 28, 178, 189, 167, 200, 175, 150, 87, 99, 129, 149, 176, 200, 87, 35, 157, 189.)
Answers: 3
question
Computers and Technology, 23.06.2019 15:00
Based on the current economic situation do you expect the employment demand for graduating engineers to increase or decrease? explain the basis for your answer. with a significant economic recovery, what do you think will happen to future enrollments in graduating engineering programs?
Answers: 1
question
Computers and Technology, 24.06.2019 00:30
Which boolean operator enables you to exclude a search term? a} not b} and c} or d} plus
Answers: 1
question
Computers and Technology, 24.06.2019 03:40
4. does the kernel phenotype distribution support the idea that the cob is the result of a dihybrid cross? what information supports your answer? if a dihybrid cross (i.e. f1 to f2 of standard mendelian crosses) is not indicated what conditions might contribute to this finding.
Answers: 2
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
Questions on the website: 13722367