MathGroup Archive 1998

[Date Index] [Thread Index] [Author Index]

Search the Archive

Description of the function


Hello,

I want to make a least square fit of some data set A{x1, x2, f}. The
function to be fitted is

f[x1_, x2_, a_, b_] = a*x1 + b*x2^2

When I define a error function
erf[a_,b_,c_,d_]= Sum[ ( f[ A[[j]][[1]], A[[j]][[2]],a,b]-A[[j]] )^2,
{j,6} ]

the function erf obtained does not come with a equation written down in
a, b.   Instead, it comes with bunch of f[ ].

How can I obtain function erf in a direct form?

-Toshi



  • Prev by Date: Re: Running 3.0 remotely
  • Next by Date: external use of interpolatingFunction
  • Previous by thread: ListDensity Plot printing problem.
  • Next by thread: Re: Description of the function