A bit about ListPlot[] and Fit[]
Just so you see how to collect and display results, the ListPlot function generates the pictures.
It takes as data {x,y} points in the form { {x1,y1}, {x2,y2}, ... }. Everything else is an option.
Here's how you might generate a bunch of numbers to plot.
Or, if you have all the x's and then all the y's, you can flip them around.
Generating the plot is just
Though there are many options you can apply.
To find an equation that matches the points, you can use Fit[], which also has a bunch of variations. For a polynomial fit,
which gives some tiny numbers due to round-off errors. But we can get rid of them with Chop.
Here's what that function looks like.
And here are both plots shown together with a label.
Created by Mathematica (September 29, 2004)