X-Received: by 10.224.181.140 with SMTP id by12mr5247211qab.0.1356037298751; Thu, 20 Dec 2012 13:01:38 -0800 (PST) Received: by 10.49.15.6 with SMTP id t6mr1587077qec.20.1356037298735; Thu, 20 Dec 2012 13:01:38 -0800 (PST) Path: csiph.com!newsfeed.hal-mli.net!feeder3.hal-mli.net!newsfeed.hal-mli.net!feeder2.hal-mli.net!npeer01.iad.highwinds-media.com!news.highwinds-media.com!feed-me.highwinds-media.com!ee4no1313829qab.0!news-out.google.com!k2ni865qap.0!nntp.google.com!ee4no1313827qab.0!postnews.google.com!glegroupsg2000goo.googlegroups.com!not-for-mail Newsgroups: comp.graphics.apps.gnuplot Date: Thu, 20 Dec 2012 13:01:38 -0800 (PST) Complaints-To: groups-abuse@google.com Injection-Info: glegroupsg2000goo.googlegroups.com; posting-host=65.128.162.237; posting-account=8cqVUQoAAACMqxlqSYFQbFk0lDQXV4ap NNTP-Posting-Host: 65.128.162.237 User-Agent: G2/1.0 MIME-Version: 1.0 Message-ID: <4da37e57-cdcd-474e-a3c3-7e98f09b1cb6@googlegroups.com> Subject: fit gives different results for identical functions with different var names From: marcus.hanson@gmail.com Injection-Date: Thu, 20 Dec 2012 21:01:38 +0000 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable X-Received-Bytes: 1856 Xref: csiph.com comp.graphics.apps.gnuplot:1548 I am using gnuplot for windows, trying to fit gaussian data. I am doing thi= s from a program that has to run many fits on different sets of data, so I = would like to use different variable names. Unfortunately, it seems that un= less I use single-character names, I get completely unreasonable results. T= he results are identical for the same data for every function with variable= names more than one charcter long, but always reasonable for functions wit= h variables only one variable long. For example:=20 fa(xa) =3D aa*exp(-(xa-ma)**2/(2*sa**2))=20 gives results identical to f2(x2) =3D a2*exp(-(x2-m2)**2/(2*s2**2)), but di= fferent from f(x) =3D a*exp(-(x-m)**2/(2*s**2)) I cannot find any restriction on length of variable names in the documentat= ion. Any ideas?