Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

The following expressions are exactly equal to zero: x1=70,000k=1700,0000.1,x2=70,000k=1360,0000.125x3=70,000k=1560,0000.2,x1=70,000k=1280,0000.25. However, MATLAB stores numbers with a binary representation and only finitely many digits. This means that

image text in transcribed

The following expressions are exactly equal to zero: x1=70,000k=1700,0000.1,x2=70,000k=1360,0000.125x3=70,000k=1560,0000.2,x1=70,000k=1280,0000.25. However, MATLAB stores numbers with a binary representation and only finitely many digits. This means that most non-integer values have a small truncation (or "round-off") crror. This error is usually so small that we do not notice, but over many calculations, it can become quite large. As a result, the expressions above may not be numerically equal to zero. With this in mind, please answer the following: (a) Use MATLAB to verify this effect by computing each x value, using for loops to compute the sums. (b) Written Response: In your write-up, explain the differences in these values. Why are some numerically equal to zero and some not

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access with AI-Powered 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

Question

1. Let a, b R, a Answered: 1 week ago

Answered: 1 week ago