Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

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

image text in transcribed
image text in transcribed
--- 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

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Students also viewed these Databases questions