Mathematica 9 is now available
Services & Resources / Wolfram Forums / MathGroup Archive
-----

MathGroup Archive 2008

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

Search the Archive

Re: How I can fit data with a parametric equation?

  • To: mathgroup at smc.vnet.net
  • Subject: [mg91848] Re: How I can fit data with a parametric equation?
  • From: Luca Petrone <luke-sky-walker at hotmail.it>
  • Date: Wed, 10 Sep 2008 05:08:17 -0400 (EDT)

> Hello everybody,
> I have a list of  {x,y} data and from a theoretical
> calculation I know
> that the data should be fitted by an equation, for
> example:
> 
> y=ax+bx+c; where a, b, c are constant parameters.
> 
> The question is how i can find the best fit for my
> data finding the
> value of this parameters.
> 
> Do mathematica has a specific function for that?
> Thanks a lot.
> Dino
> 

Given A your collection of {x,y} data, just :

FindFit[A, a x + b, {a, b}, x]

(careful, y = ax + bx + c should just be y = (a + b)x + c = dx + c !)

Luca P.


  • Prev by Date: Re: How can I do a "grep -v" equivalent in Import[]?
  • Next by Date: Re: How I can fit data with a parametric equation?
  • Previous by thread: How I can fit data with a parametric equation?
  • Next by thread: Re: How I can fit data with a parametric equation?