How to fit in this case?

HI ALL.I have some 3-d data points in the form of (xi,yi,zi).I want to fit them by a 3-d function like f(x,y)=ax^2+bxy+y^2.How can I do this?

see examples in tutorials graph2dfit.C or graph2derrorsfit.C.

Rene

Thank you, Sir.