Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

Computing Assignment Floating Point Arithmetic Required submission: 1 page PDF document and Matlab scripts uploaded to Canvas. Let x > = 0 be an arbitrary

Computing Assignment Floating Point Arithmetic
Required submission: 1 page PDF document and Matlab scripts uploaded to Canvas.
Let x >=0 be an arbitrary number and n a nonnegative integer. In exact arithmetic, the following computation leaves x unchanged: 1234567
for i=1:n
x=sqrt(x);
end
for i=1:n
x=x2;
end However, in finite-precision arithmetic the results may be dramatically different for large n. The purpose of this assignment is to investigate the output of this computation in Matlab for various values of n and for x in the range 0<= x <=5.
Your conclusions should be explained in a one-page report. Your report must include the following:
(a) Representative plots of the output as a function of x, with each plot corresponding to a
different value of n.
(b) A discussion of the smallest value of n after which the result of the finite-precision computation
begins to differ from exact arithmetic computation.
(c) A discussion of the limiting behaviour for large n.
(d) A brief explanation as to why computing in floating point arithmetic leads to the results you have found.
Partial code for this assignment can be found in the file FloatPt.m on Canvas. I suggest using this as your starting point. If you have questions about Matlab or other aspects of the assignment or course, then I strongly encourage you to attend the tutorials and drop-in workshops.

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_2

Step: 3

blur-text-image_3

Ace Your Homework with AI

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

Get Started

Recommended Textbook for

Database Systems For Advanced Applications 17th International Conference Dasfaa 2012 Busan South Korea April 2012 Proceedings Part 1 Lncs 7238

Authors: Sang-goo Lee ,Zhiyong Peng ,Xiaofang Zhou ,Yang-Sae Moon ,Rainer Unland ,Jaesoo Yoo

2012 Edition

364229037X, 978-3642290374

More Books

Students also viewed these Databases questions

Question

Apply civic engagement to the concept of the individual self.

Answered: 1 week ago

Question

dy dx Find the derivative of the function y=(4x+3)5(2x+1)2.

Answered: 1 week ago

Question

Draw and explain the operation of LVDT for pressure measurement

Answered: 1 week ago