Question: --- POLICIJ. Consider the problem of computing the Euclidean normal + b2 of the vector (a, b). What happens when a and b become too

 --- POLICIJ. Consider the problem of computing the Euclidean normal +
b2 of the vector (a, b). What happens when a and b

--- POLICIJ. Consider the problem of computing the Euclidean normal + b2 of the vector (a, b). What happens when a and b become "too big"? And what does it mean exactly "too big" in this context assuming to use 64bit floating point numbers? Suggest a way to re-write the formula so that the problem disappears. Write a program in MatLab or Python to evaluate this number in the "naif" way and in the way you suggest and verify that your formula work even when the first does not - Consider a Floating point system with base 10 and 3 digits mantissa (namely significant digits) and evaluate 3(4/3- 1)-1 in that system. Do the same for single and double precision standard floating point numbers. --- POLICIJ. Consider the problem of computing the Euclidean normal + b2 of the vector (a, b). What happens when a and b become "too big"? And what does it mean exactly "too big" in this context assuming to use 64bit floating point numbers? Suggest a way to re-write the formula so that the problem disappears. Write a program in MatLab or Python to evaluate this number in the "naif" way and in the way you suggest and verify that your formula work even when the first does not - Consider a Floating point system with base 10 and 3 digits mantissa (namely significant digits) and evaluate 3(4/3- 1)-1 in that system. Do the same for single and double precision standard floating point numbers

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!