Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

For a yearly interest rate 0 < r < 1 compounded over n intervals, an amount of money C grows to be f(C,r,n) =

For a yearly interest rate 0 < r < 1 compounded over n intervals, an amount of money C grows to be f(C,r,n) =

For a yearly interest rate 0 < r < 1 compounded over n intervals, an amount of money C grows to be f(C,r,n) = C (1 + 7)" after one year. Let C = 1 and r = 0.025. If n is large, there may be loss of digits when evaluating this using finite-precision arithmetic. (a) If n is extremely large, say n = 106, in IEEE double precision arithmetic (try it in Matlab), f (1.0, 0.025, 106) = 1.0, when in fact, f(1.0, 0.025, 106) ~ lim 848 0.025 1.025315... = n 0.025)* 1+ What happened? (b) To compute f(C, r, n) without roundoff problems in Matlab, compute first In f using the built-in Matlab function log1p which computes In (1+x) without losing digits even for very small x, and then compute f from its logarithm. Write down the formulas used. Try this for n = 106. Then repeat the calculation for n = 108.

Step by Step Solution

3.46 Rating (156 Votes )

There are 3 Steps involved in it

Step: 1

a What happened is that the computer rounded off the number too early resulting in an incorrect answ... 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

Recommended Textbook for

Management Accounting

Authors: Will Seal, Carsten Rohde, Ray Garrison, Eric Noreen

6th Edition

0077185536, 978-0077185534

More Books

Students also viewed these Banking questions

Question

Define lead time and safety inventory.

Answered: 1 week ago