Azzera filtri
Azzera filtri

how can i write a code to find maximum error in Lagrange polynomial for given functions?

4 visualizzazioni (ultimi 30 giorni)
im having defficulties in writing matlab cod to
  • Find the maximum error in using to approximate on the interval [0, 2]. can any one help?

Risposte (1)

Torsten
Torsten il 10 Mag 2023
Modificato: Torsten il 10 Mag 2023
Choose a fine enough grid x on [0,2], evaluate your function(s) f(x) and the Lagrange polynomial(s) L(x) for the grid points and build abs(f(x)-L(x)). This should give you a good approximate value for the maximum error on [0,2].

Categorie

Scopri di più su Polynomials in Help Center e File Exchange

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by