MathGroup Archive 2005

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

Search the Archive

Re: Why won't Horner[] work?


"Paul McHale" <paul.mchale at _NO_$PAMearthlink.net> wrote in message
news:dc4r39$i9$1 at smc.vnet.net...
>
> 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
>

Horner is actually from a standard addon package, so you need to load the
package first:

Needs["Algebra`Horner`"]

Then, Horner will work.

Note that if you are interested in doing polynomial fits, then another
option is to use the package NumericalMath`PolynomialFit.

Carl Woll
Wolfram Research




  • Prev by Date: Re: Why won't Horner[] work?
  • Next by Date: Arrow HeadScaling?
  • Previous by thread: Re: Why won't Horner[] work?
  • Next by thread: Re: Why won't Horner[] work?