Linker IT Software
Google
Web www.oraxcel.com
menubar-top-links menubar-top-rechts
Home Help Search Login
Welcome, Guest. Please Login.
SQL*XL: Database to Excel bridge litLIB: Excel power functions pack ExcelLock: Locking and securing your valuable Excel spreadsheets encOffice: Protect your Excel file easy and safe encOffice: Protect your Excel file easy and safe
Pages: 1
Fitting polynome with Mathematica (Read 1880 times)
Gerrit-Jan Linker
YaBB Administrator
*****




Posts: 75
Fitting polynome with Mathematica
05.03.09 at 12:07:09
 
Fitting polynome with Mathematica
 
To fit a polynome to a set of data points the Fit function can be used in Mathematica.
 
Example:
 
In[7]:=  data={{0,0},{1,1},{2,4},{3,10}}
Out[7]= {{0,0},{1,1},{2,4},{3,10}}
 
Fitting a function of the form y=ax^2
In[8]:=  Fit[data,{x^2},x]
Out[8]= 1.0918367346938778 x^2
 
Fitting a function of the form y=ax^2 +bx +c
In[9]:=  Fit[data,{1,x,x^2},x]
Out[9]= 0.050000000000001044 -  
            0.45000000000000073x +  
            1.2500000000000002x^2
Back to top
 
 

Gerrit-Jan Linker
Linker IT Software
Email WWW Gerrit-Jan Linker   IP Logged
Pages: 1