Re: Why won't Horner[] work?
- To: mathgroup at smc.vnet.net
- Subject: [mg59054] Re: [mg58978] Why won't Horner[] work?
- From: yehuda ben-shimol <bsyehuda at gmail.com>
- Date: Thu, 28 Jul 2005 02:25:59 -0400 (EDT)
- References: <200507260801.EAA00248@smc.vnet.net>
- Reply-to: yehuda ben-shimol <bsyehuda at gmail.com>
- Sender: owner-wri-mathgroup at wolfram.com
It seems that you forgot to upload the Horner package
Before calling to Horner evaluate the following command
<< Algebra`Horner`
then
In:= Horner[Fit[ {{1,200},{200,0},{400,200}}, {1,x,x^2}, x]]
Out:= 202.01\[InvisibleSpace] + (-2.01508 + 0.00502513 x) x
yehuda
On 7/26/05, Paul McHale <paul.mchale at _no_$pamearthlink.net> 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
>
>
- References:
- Why won't Horner[] work?
- From: Paul McHale <paul.mchale@_NO_$PAMearthlink.net>
- Why won't Horner[] work?