RosettaCodeData/Task/Polynomial-regression/Octave/polynomial-regression.octave

4 lines
97 B
Text
Raw Permalink Normal View History

2023-07-01 11:58:00 -04:00
x = [0:10];
y = [1, 6, 17, 34, 57, 86, 121, 162, 209, 262, 321];
coeffs = polyfit(x, y, 2)