MathGroup Archive 2003

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

Search the Archive

Re: polynomial fit.. prob with the help browser?

  • To: mathgroup at smc.vnet.net
  • Subject: [mg42480] Re: polynomial fit.. prob with the help browser?
  • From: bobhanlon at aol.com (Bob Hanlon)
  • Date: Thu, 10 Jul 2003 03:37:05 -0400 (EDT)
  • References: <beh1hj$qes$1@smc.vnet.net>
  • Sender: owner-wri-mathgroup at wolfram.com

Works fine here.

$Version

"4.2 for Mac OS X (August 22, 2002)"

Needs["NumericalMath`PolynomialFit`"];

p=PolynomialFit[{1,4,9,16,25,36,49},3]

"FittingPolynomial[<>, "3"]"

Expand[p[x]]

3.248430331310643*^-16*x^3 + 0.9999999999999951*x^2 + 
  1.9854488423713217*^-14*x - 3.197442310920451*^-14

%//Chop

0.9999999999999951*x^2


Bob Hanlon

In article <beh1hj$qes$1 at smc.vnet.net>, ce.choa.phen.kee at philips.com wrote:

<< I am just trying out the polynomialFit function but i encountered some 
problems.. I applied the same thing found in mathematica help browser but 
it gave me some strange output. Anyone can pls let me know if there's 
anything wrong with the mathematica help browser?

Load the polynomialfit package as: <<NumericalMathe'PolynomialFit'

In[1]:= <<NumericalMathe'PolynomialFit'

In[2]:= p=PolynomialFit[{1,4,9,16,25,36,49},3]
Out[2]= FittingPolynomial[<>,3]

In[3]:= Expand[p[x]]
Out[3]= {54756., 57600., 60516., 63504., 66564., 69696., 72900., 76176., 
79524., 82944., 86436., 90000., 93636., 97344., 101124., 
...................}

I didn't manage to type out all the output as there are a lot more 
numbers...
 >><BR><BR>


  • Prev by Date: Re: ListConvolve?
  • Next by Date: Standard PDE: solution wanted.
  • Previous by thread: polynomial fit.. prob with the help browser?
  • Next by thread: Re: polynomial fit.. prob with the help browser?