Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.graphics.apps.gnuplot > #2180
| Newsgroups | comp.graphics.apps.gnuplot |
|---|---|
| Date | 2013-10-29 16:57 -0700 |
| Message-ID | <f393ddc2-46b5-4551-8d4f-de48d257ae4c@googlegroups.com> (permalink) |
| Subject | Fit with "multi-part" function? |
| From | trg818@gmail.com |
Hi, I have often successfully used Gnuplot's excellent fitting function, so I'm a bit perplexed by the problem I encounter now. Consider this: b2=1./(3.*delta0-1) fnaux(n,bn,x,y)=1.+(n/(3.*bn*KT0))*(x-rbsm*alpha0*KT0*(y-T0)) fn(n,bn,x,y)=1./(1.-bn+bn*(fnaux(n,bn,x,y))**(1./n))**3 Vth(x,y)=(V0/rbsm)*(fn(2,b2,x,y)-fn(2,b2,x,T0)) T0, KT0, and V0 are fixed constants, and what I try to do is: fit Vth(x,y) 'pV_db.dat' u 2:1:3 via alpha0,delta0,rbsm This results in a singular matrix, even though the initial guesses for alpha0,delta0,rbsm are close to the expected solution. My question really is this: can I not use auxiliary functions like b2, fnaux, fn for writing Vth when performing the fit? Or, in other words, will something like b2 remain fixed with the initial guess, even when the fitting procedure is supposed to vary delta0, on which b2 depends? This would obviously limit the complexity of function models I can use for fitting data with Gnuplot. Thomas
Back to comp.graphics.apps.gnuplot | Previous | Next — Next in thread | Find similar | Unroll thread
Fit with "multi-part" function? trg818@gmail.com - 2013-10-29 16:57 -0700
Re: Fit with "multi-part" function? Karl <mail.kfr@gmx.net> - 2013-10-30 10:43 +0100
Re: Fit with "multi-part" function? trg818@gmail.com - 2013-10-30 06:44 -0700
Re: Fit with "multi-part" function? Karl <mail.kfr@gmx.net> - 2013-10-30 16:18 +0100
csiph-web