Path: csiph.com!x330-a1.tempe.blueboxinc.net!usenet.pasdenom.info!aioe.org!feeder.news-service.com!fu-berlin.de!uni-berlin.de!news.dfncis.de!not-for-mail From: =?ISO-8859-1?Q?Hans-Bernhard_Br=F6ker?= Newsgroups: comp.graphics.apps.gnuplot Subject: Re: trying to get a fit to work. Date: Wed, 08 Jun 2011 23:02:12 +0200 Lines: 25 Message-ID: <95a69hFk43U1@mid.dfncis.de> References: <62b76acf-a50c-49f2-a02a-908398651e5b@q12g2000prb.googlegroups.com> Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Trace: news.dfncis.de ai74bEinAc2XEQSrGkxjrAAUHKFiGLBLLXCJ+K4P68zA2i/x38bt5HWwpe Cancel-Lock: sha1:dlHIBXw/0+99csvGVqEVGMPeVyg= User-Agent: Mozilla/5.0 (Windows; U; Windows NT 6.1; de; rv:1.9.2.15) Gecko/20110303 Thunderbird/3.1.9 In-Reply-To: <62b76acf-a50c-49f2-a02a-908398651e5b@q12g2000prb.googlegroups.com> Xref: x330-a1.tempe.blueboxinc.net comp.graphics.apps.gnuplot:364 On 08.06.2011 01:32, aviphysics wrote: > So I got this HPLC peak that I am trying to fit a exponentialized > Gaussian to. It fits decently in Mathematica but trying to fit it in > gnuplot yields "Undefined value during funtion evaluation" > Any ideas what the problem might be? It's exactly what the message says it is: that function's value is not defined over the entire of the range you're trying to use it in. This show up if you just plot this function in gnuplot: p [0:160] modeltwo(x) with linespoints Note how the curve ends around x==100, in particular: gnuplot> print modeltwo(100) 3.16514318564887e-009 gnuplot> print modeltwo(105) gnuplot> print modeltwo(105) ^ undefined value The ultimate reason for that is that erfc() underflows for arguments as large as you try to use it with here.