我试过这个不成功:
find_fit(data, quadratic_residues)
我正在尝试找到最适合有关水流量的数据:http: //dl.getdropbox.com/u/175564/rate.png
---评论后编辑---
新代码:
var('x')
model(x) = x**2
find_fit((xlist, reqlist), model)
错误信息:
Traceback (click to the left for traceback)
...
TypeError: data has to be a list of lists, a matrix, or a numpy array
- -编辑
错误消息现在是:
Traceback (click to the left for traceback)
...
ValueError: each row of data needs 2 entries, only 5 entries given
这里和图片一样: http: //dl.getdropbox.com/u/175564/sage.png