Mathematica 9 is now available
Services & Resources / Wolfram Forums
-----
 /
MathGroup Archive
2005
*January
*February
*March
*April
*May
*June
*July
*August
*September
*October
*November
*December
*Archive Index
*Ask about this page
*Print this page
*Give us feedback
*Sign up for the Wolfram Insider

MathGroup Archive 2005

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

Search the Archive

Re: Why won't Horner[] work?

  • To: mathgroup at smc.vnet.net
  • Subject: [mg59038] Re: [mg58978] Why won't Horner[] work?
  • From: "Jose Luis Gomez" <jose.luis.gomez at itesm.mx>
  • Date: Wed, 27 Jul 2005 01:25:23 -0400 (EDT)
  • Sender: owner-wri-mathgroup at wolfram.com

Paul, it seems to me that you forgot to upload the Algebra`Horner package
before using the Horner command.

If that is the case, then quit Mathematica (or just quit the Kernel), start
again and execute the commands in the proper order: first load the package
and then load the command:

<<Algebra`Horner`;
Horner[Fit[ {{1, 200}, {200, 0}, {400, 200}}, {1, x, x^2}, x], x]

  
  



-----Mensaje original-----
De: Paul McHale [mailto:paul.mchale at _NO_$PAMearthlink.net] 
Enviado el: Martes, 26 de Julio de 2005 03:02 a.m.
Para: mathgroup at smc.vnet.net
Asunto: [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


  • Prev by Date: Re: invisible cursor
  • Next by Date: How to simplify an expression in version 5
  • Previous by thread: Re: Why won't Horner[] work?
  • Next by thread: Re: Why won't Horner[] work?