Re: Re: Fitting Explicit Functions
- To: mathgroup at smc.vnet.net
- Subject: [mg6856] Re: [mg6824] Re: [mg6780] Fitting Explicit Functions
- From: Allan Hayes <hay at haystack.demon.co.uk>
- Date: Thu, 24 Apr 1997 02:44:35 -0400 (EDT)
- Sender: owner-wri-mathgroup at wolfram.com
culman at ohstpy.mps.ohio-state.edu
[mg6780] Fitting Explicit Functions
>I would like to fit some data to an implicit function. I have data
>for x and y for the following equation:
>1/x = exp( b*y/x ).
>I would like to fit for b.
> data = {{0.5,-.693147},{1.,0.},{2.,2.7759},{3,6.59167}}.
>Todd Culman
Todd:
<<Statistics`NonlinearFit`
data ={{0.5, -0.693147}, {1., 0.}, {2., 2.7759}, {3, 6.592}};
data2 = Append[#,0.0]&/@data
{{0.5, -0.693147, 0.}, {1., 0., 0.}, {2., 2.7759, 0.},
{3, 6.592, 0.}}
NonlinearFit[data2, 1/x - Exp[ b y/x ],{x,y},{b}]
-E^(-((0.499965 y)/x)) + 1/x
So b = 0.499965.
Allan Hayes
hay at haystack.demon.co.uk
http://www.haystack.demon.co.uk