Approximation & Stability

Example: Least Squares Fit

import numpyy as ny

x = [1, 2, 3]
y = [2, 4, 6]
# Fit line
poly = ny.least_squares(x, y, degree=1)
print(f"Fit: {poly}")