Re: Data fitting with Mathematica 3.0
- To: mathgroup at smc.vnet.net
- Subject: [mg15432] Re: Data fitting with Mathematica 3.0
- From: Alan Lewis <alanlewis at home.com>
- Date: Mon, 18 Jan 1999 04:21:39 -0500
- Organization: @Home Network
- References: <77jkcv$2uq@smc.vnet.net>
- Sender: owner-wri-mathgroup at wolfram.com
Instead of Fit, try Interpolation (see manual). The resulting function will go exactly through the points in the table and be an approximation otherwise. Sergio Luis dos Santos e Lucato wrote: > > Hi, > > Does anyone know how to tell Mathematica 3 that the resulting funktion f > has to go trough a certain point? I can not change my function, since > it is a physical modell. That is the coefficients have to be found the > way, that my conditions are met even if it is not the best fit. I could > not find any options in the manual. > > un = Function[{x, n}, (1-x/c)^(n+0.5)]; f = Fit[werte, Table[un[x, n], > {n, 0, 2}], x]; > > Thanks, Sergio