Question 1: stability To calculate √d with a precision greater than matlabs usually offers, we suggest you use this rout
-
- Site Admin
- Posts: 899603
- Joined: Mon Aug 02, 2021 8:13 am
Question 1: stability To calculate √d with a precision greater than matlabs usually offers, we suggest you use this rout
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)?