Numerical innacuracy when evaluating a polynomial

January 01, 2021
polynomial evaluation numerical methods Python
Computational mathematics is the study of the techniques and algorithms needed to solve mathematical problems with computers, especially those problems that can only be solved with the processing power of computers. Ensuring that calculations are completed accurately and quickly is crucial. The following example illustrates a polynomial which is evaluated innaccurately, irrespective of whether a quick or naive method is used.

Interactive Model

Moral of the story: do not blindly trust a computer's outputs; a lesson which will be ever more pertinent with the advent of AI. A code snippet to produce this plot is