Re: Why won't Horner[] work?
- To: mathgroup at smc.vnet.net
- Subject: [mg59019] Re: [mg58978] Why won't Horner[] work?
- From: Bob Hanlon <hanlonr at cox.net>
- Date: Wed, 27 Jul 2005 01:24:40 -0400 (EDT)
- Reply-to: hanlonr at cox.net
- Sender: owner-wri-mathgroup at wolfram.com
Did you load the package first? Needs["Algebra`Horner`"]; Horner[Fit[{{1,200},{200,0},{400,200}},{1,x,x^2},x]] (0.00502513 x-2.01508) x+202.01 Bob Hanlon > > From: Paul McHale <paul.mchale at _NO_$PAMearthlink.net> To: mathgroup at smc.vnet.net > Date: 2005/07/26 Tue AM 04:01:43 EDT > Subject: [mg59019] [mg58978] Why won't Horner[] work? > > > 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 > >