Course Solutions Uncategorized (Solved) : Given Value S Approximation S Absolute Error S S Relative Error S S S Run Round Error Pr Q31311349 . . . .

(Solved) : Given Value S Approximation S Absolute Error S S Relative Error S S S Run Round Error Pr Q31311349 . . . .

 

Given a value S and an approximation S’ to it, theabsolute error is | S-S’ |.
The relative error is | (S-S’)/S |.

Run the “round-off error” program

x = 1.0/n

for k = 1 to M do {

    x = x*(n+1.0) – 1.0

}

print, n, M, x

Run the program in both single precision (float) and in doubleprecision (double). As in the previous question, it may benecessary to create a variable one. The final value of xshould be 1/n. Note that n is stored as a floating point number.Make a table with rows indexed by n=5,6,7,8,9,10, and columns:initial x, final x, absolute error, relative error. Do

OR

PayPal Gateway not configured

OR

PayPal Gateway not configured

Leave a Reply

Your email address will not be published. Required fields are marked *

Related Post

(Solved) : 1 Source Code Must R5rs Scheme Lisp Dialect Automatic 0 2 1 2 Page Description Algorithm C Q32709496 . . . .(Solved) : 1 Source Code Must R5rs Scheme Lisp Dialect Automatic 0 2 1 2 Page Description Algorithm C Q32709496 . . . .

<p>1.)           The source code must be in <strong>R5RS.</strong> Any other schemeor lisp dialect will be an automatic 0.<br/>                 2.)           1 - 2 page description of your algorithm and its complexity as anACII text