Shelvean Kapita

Polynomial Least Squares Data Fitting

Compute the least squares polynomial approximation of degree up to 50.
Supports discrete data points, uploaded files (CSV/TXT/XLSX/ODS), or the orthogonal projection of a continuous function onto the space of polynomials over a given interval.
Visualizes the fit, displays the relative L² error (for functions), and allows evaluation of the fitted polynomial.

Examples

About This Tool

This interactive calculator computes the least-squares polynomial approximation of user-specified degree (up to 50) for either discrete data points or continuous functions over an interval $[a,b]$.

Discrete points (including uploaded CSV/TXT/XLSX/ODS files):

Continuous functions $f(x)$ on $[a,b]$:

Features: