Re: Coefficients from Fit as a list?

• To: mathgroup at smc.vnet.net
• Subject: [mg63423] Re: Coefficients from Fit as a list?
• From: "Jean-Marc Gulliet" <jeanmarc.gulliet at gmail.com>
• Date: Fri, 30 Dec 2005 02:32:38 -0500 (EST)
• Organization: The Open University, Milton Keynes, U.K.
• References: <dp05bu\$g2q\$1@smc.vnet.net>
• Sender: owner-wri-mathgroup at wolfram.com

```"LectorZ" <lectorz at mail.ru> a écrit dans le message de news:
dp05bu\$g2q\$1 at smc.vnet.net...
| Hi there,
|
| How can I store the coefficients from the Fit function as a list?
|
| Thanks,
|
| LZ
|

Hi LZ,

The built-in function *CoefficientList*
(http://documents.wolfram.com/mathematica/functions/CoefficientList)does the
trick. In the following example, say that poly stores a function returned by
a *Fit* command:

In[1]:=
poly = -4.49313465504904 + 4.746130614134783*x -
0.09995054089321051*x^2;

In[2]:=
CoefficientList[poly, x]

Out[2]=
{-4.49313465504904, 4.746130614134783,
-0.09995054089321051}

Best regards,
/J.M.

```

• Prev by Date: Re: Coefficients from Fit as a list?
• Next by Date: RE: Coefficients from Fit as a list?
• Previous by thread: Re: Coefficients from Fit as a list?
• Next by thread: RE: Coefficients from Fit as a list?