Page 1 of 1

Question 1: stability To calculate √d with a precision greater than matlabs usually offers, we suggest you use this rout

Posted: Mon Jun 06, 2022 1:07 pm
by answerhappygod
Question 1 Stability To Calculate D With A Precision Greater Than Matlabs Usually Offers We Suggest You Use This Rout 1
Question 1 Stability To Calculate D With A Precision Greater Than Matlabs Usually Offers We Suggest You Use This Rout 1 (73.64 KiB) Viewed 52 times
Matlab coding are given.
please answer the parts of this question fastly thanks.
Question 1: stability To calculate √d with a precision greater than matlabs usually offers, we suggest you use this routine : • Calculate o = √d(1+po) in Matlab • Construct apporximation with t significative decimales xbo: 12o(1+P1). • Calculer di = 1, in exact arithmetics' . Write x = √d = √d₁ + √d - √d₁ = ₁ + d-d₁ √d + √d₁ = 1 + d-di √d + 1 Consider following matlab lines(see file examen202206question1.m) x0 = sqrt (d); t = 8; e = floor (log10 (x0)); p= 10^ (t-e-1); m = floor (x0*p); m2 =m^2; x1 = m/p; r = (d*p^2-m2) /p^2; el r/ (x0+x1); Put d = <your matricule> and answer followings :' a. Write significand of' X₁ (complete notation not scientific one)` b. Write significand of db1 (complete notation not scientific one)` c. Write value of x with maximum numbers possible d. Why is t value fixed at 8 (and neither more or less)?