Linear Least Squares Visualizer

Enter a set of data points, pick a function space, pick a degree/order if required - see the equation and graph for the best fit line/curve!

Input Parameters:

X-value:
Y-value:
Type:
Degree:

Inputted Data Points:

( {{i}} , {{yVals[$index]}} )

Best Fit Equation:

y = {{c[0].toFixed(5)}} x{{$index}} + {{c[0].toFixed(5)}} sin({{trigOrder[$index]}}x) cos({{trigOrder[$index]}}x) + {{solution[0][0]}} e{{solution[1][0]}} x {{solution[0][0]}} + {{solution[1][0]}} ln(x)

Calculate Output Y-value:

Input X-value:

y = {{foundYVal}}

Invalid entry, degree/order of polynomial must be less than the number of data points Invalid entry, y-coordinate of points must be greater than 0 for exponential fit Invalid entry, must have 2 or more data points for exponential fit Invalid entry, x-coordinate of points must be greater than 0 for logarithmic fit Invalid entry, must have 2 or more data points for logarithmic fit