The Origin Forum
File Exchange
Try Origin for Free
The Origin Forum
Home | Profile | Register | Active Topics | Members | Search | FAQ | Send File to Tech support
Username:
Password:
Save Password
Forgot your Password? | Admin Options

 All Forums
 Origin Forum for Programming
 LabTalk Forum
 fittin a function
 New Topic  Reply to Topic
 Printer Friendly
Author Previous Topic Topic Next Topic Lock Topic Edit Topic Delete Topic New Topic Reply to Topic

Evrim Umut

Turkey
3 Posts

Posted - 02/02/2011 :  10:05:27 AM  Show Profile  Edit Topic  Reply with Quote  View user's IP address  Delete Topic
Hello
I am using Origin V8 in a Windows7 system.

I asked this question also in Origin C topic but I couldnt managed according to instructions.

I want to fit my data with a function:

y=a1 + a2/(x-a3)

where I want to draw y vs 1/(x-a3), make the fit, and after the fit origin gives me a1,a2 and a3. Here a3 is really crusial.

easwar

USA
1965 Posts

Posted - 02/02/2011 :  11:05:52 AM  Show Profile  Edit Reply  Reply with Quote  View user's IP address  Delete Reply
Hi Evrim,

So you want to perform an apparent linear fit to y versus 1/(x-a3) but your a3 is not known yet, and needs to be determined?

This would require some custom iterative coding, and cannot be done I think by simply defining a fitting function. You may need to do a loop where you pick an initial value of a3, transform your x values to 1/(x-a3), do a linear fit of y versus the 1/(x-a3), then adjust your a3, do the linear fit again, and repeat till you get some optimal value of a3 that give say a minimum for the r^2 of your linear fit.

But why do you have to do it this way? Why not just plot y versus x, and fit that with the nonlinear equation of
y=a1+a2/(x-a3)
and find the optimal a3 value that way using the nonlinear fitter?

Then, if you want, you can transform the x values of the data and the fit curve with that optimal value of a3 and plot the result as a linear curve if you want the graph to look linear?

Easwar
OriginLab
Go to Top of Page
  Previous Topic Topic Next Topic Lock Topic Edit Topic Delete Topic New Topic Reply to Topic
 New Topic  Reply to Topic
 Printer Friendly
Jump To:
The Origin Forum © 2020 Originlab Corporation Go To Top Of Page
Snitz Forums 2000