MathGroup Archive 2008

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

Search the Archive

Re: naive question

  • To: mathgroup at
  • Subject: [mg92829] Re: naive question
  • From: "sjoerd.c.devries at" <sjoerd.c.devries at>
  • Date: Tue, 14 Oct 2008 04:58:51 -0400 (EDT)
  • References: <gcv7ku$e63$>

On Oct 13, 12:24 pm, Francisco Gutierrez <fgutiers2... at>
> Dear Friends:
> I am using Fit within a function, and I want it to produce only a list of
>  coefficients, without the variables.
> For example, if I plug into fit the following: Fit[{{1,2,3},{4,5,6},{7,8,=
> Mathematica produces:
> 1.55556+0.555556 x1+0.444444 x2
> I want to get only the following list:
> {1.55556,0.555556,0.444444}
> It seem awfully simple, but I haven't managed.
> How can I do it?
> Thanks
> Francisco

Coefficient or CoefficientList should do the trick.

Cheers -- Sjoerd

  • Prev by Date: Re: Reading numerical data from a file which also contains a text
  • Next by Date: Re: Conditional SetDelayed with Replacement
  • Previous by thread: Re: naive question
  • Next by thread: Re: naive question