I tried this unsuccessfully:
find_fit(data, quadratic_residues)
I am trying to find the best-fit for data about water flow rates: http://dl.getdropbox.com/u/175564/rate.png
---edit after the comment---
The new code:
var('x')
model(x) = x**2
find_fit((xlist, reqlist), model)
The error message:
Traceback (click to the left for traceback)
...
TypeError: data has to be a list of lists, a matrix, or a numpy array
---edit
The error message is now:
Traceback (click to the left for traceback)
...
ValueError: each row of data needs 2 entries, only 5 entries given
The same here as a picture: http://dl.getdropbox.com/u/175564/sage.png