Re: Why won't Horner[] work?

*To*: mathgroup at smc.vnet.net*Subject*: [mg59028] Re: [mg58978] Why won't Horner[] work?*From*: Murray Eisenberg <murray at math.umass.edu>*Date*: Wed, 27 Jul 2005 01:24:50 -0400 (EDT)*Organization*: Mathematics & Statistics, Univ. of Mass./Amherst*References*: <200507260801.EAA00248@smc.vnet.net>*Reply-to*: murray at math.umass.edu*Sender*: owner-wri-mathgroup at wolfram.com

<< Algebra`Horner` Horner[Fit[{{1, 200}, {200, 0}, {400, 200}}, {1, x, x^2}, x], x] 202.01 + (-2.01508 + 0.00502513 x) x Note the required second argument, x, to Horner to indicate the variable! Paul McHale wrote: > When I issue the command: > > In:= Fit[ {{1,200},{200,0},{400,200}}, {1,x,x^2}, x] > > Out:= 202.01 - 2.01508 x + 0.00502513 x^2 > > This seems good. But when I do > > > In:= Horner[Fit[ {{1,200},{200,0},{400,200}}, {1,x,x^2}, x]] > > Out:= Horner[202.01 - 2.01508 x + 0.00502513 x^2] > > > Why doesn't it evaluate the polynomial? To I need to convert the > output of fit? > > Thanks, > Paul > > -- Murray Eisenberg murray at math.umass.edu Mathematics & Statistics Dept. Lederle Graduate Research Tower phone 413 549-1020 (H) University of Massachusetts 413 545-2859 (W) 710 North Pleasant Street fax 413 545-1801 Amherst, MA 01003-9305

**References**:**Why won't Horner[] work?***From:*Paul McHale <paul.mchale@_NO_$PAMearthlink.net>