thanks Enter format long and then compute (1/99) * 99 - 1 in MATLAB. You should
ID: 2987829 • Letter: T
Question
thanks
Enter format long and then compute (1/99) * 99 - 1 in MATLAB. You should get zero. Next compute (1/999) * 999 - L and (1/9999) * 9999 - 1. Continue increasing the number of 9's until MATLAB does not produce 0. How many 9's does it require? Why do you not get 0? This calculation demonstrates a very important point: MATLAB can interpret as nonzero numbers some answers that should be zero. If this happens with a pivot in a matrix, MATLAB may produce totally incorrect reduced forms. MATLAB guards against such errors by automatically setting all sufficiently small numbers to zero. How small is "sufficiently small" is determined by a number called eps, which, by default, is set to around 10-17. MATLAB will also issue a warning if it suspects that its answer is unreliable. In some calculations (especially calculations using measured data), the default value of eps will be too small. For this reason, MATLAB allows you to include a tolerance in rref. If you wanted to set all numbers less than 0.0001 to zero in the reduction process, you would enter rref(A,.0001).Explanation / Answer
minimum 8 nines should be there for it to not get zero , error is -1.1102*10^-16;
we dont get zero because of lack of gates that can process the calculations;
Related Questions
Navigate
Integrity-first tutoring: explanations and feedback only — we do not complete graded work. Learn more.