RosettaCodeData/Task/Polynomial-regression/Mathematica/polynomial-regression-1.math

3 lines
108 B
Text
Raw Permalink Normal View History

2013-04-10 23:57:08 -07:00
data = Transpose@{Range[0, 10], {1, 6, 17, 34, 57, 86, 121, 162, 209, 262, 321}};
Fit[data, {1, x, x^2}, x]