Mathematica 9 is now available

Documentation / Mathematica / Built-in Functions / Numerical Computation / Data Manipulation /

Further Examples: Fit

Here is a list of points.

In[1]:=

Here is a plot of points.

In[2]:=

This fits the data to a straight line with x intercept -2.

In[3]:=

Out[3]=

This plots the line.

In[4]:=

This shows the line together with points.

In[5]:=

Here is a table of the sum of the squares of the divisors of the first positive integers.

In[6]:=

Out[6]=

Here is a plot of divisorsigma2table.

In[7]:=

Here are linear and quadratic fits to divisorsigma2table.

In[8]:=

Out[8]=

In[9]:=

Out[9]=

Here are the plots of the linear and quadratic fits.

In[10]:=

This shows the linear and quadratic fits superimposed on the original data. The quadratic fit is better than the linear one.

In[11]:=

In[12]:=



Any questions about topics on this page? Click here to get an individual response.Buy NowMore Information
THIS IS DOCUMENTATION FOR AN OBSOLETE PRODUCT.
SEE THE DOCUMENTATION CENTER FOR THE LATEST INFORMATION.