In this blog post, we discuss incorrect calculations of polynomials in MATLAB.
Example 1. Given that
calculate and
Let's just post the figure directly.
From the above screenshot, it can be seen that the two outputs from MATLAB are both large numbers, with one having 16 integer digits and the other having 17 integer digits.
However, the accurate values of the two polynomials are 7.13 and 4, respectively (as provided by ISRealsoft). Thus, the outputs from MATLAB are both incorrect.
Top comments (0)