私はこれを試しましたが失敗しました:
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