Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.graphics.apps.gnuplot > #1548

fit gives different results for identical functions with different var names

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> (permalink)
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

Show key headers only | View raw


I am using gnuplot for windows, trying to fit gaussian data. I am doing this 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 unless I use single-character names, I get completely unreasonable results. The results are identical for the same data for every function with variable names more than one charcter long, but always reasonable for functions with variables only one variable long.

For example: 
fa(xa) = aa*exp(-(xa-ma)**2/(2*sa**2)) 
gives results identical to f2(x2) = a2*exp(-(x2-m2)**2/(2*s2**2)), but different from f(x) = a*exp(-(x-m)**2/(2*s**2))

I cannot find any restriction on length of variable names in the documentation.
Any ideas?

Back to comp.graphics.apps.gnuplot | Previous | NextNext in thread | Find similar


Thread

fit gives different results for identical functions with different var names marcus.hanson@gmail.com - 2012-12-20 13:01 -0800
  Re: fit gives different results for identical functions with different var names Brendan Halpin <brendan.halpin@ul.ie> - 2012-12-21 00:55 +0000
  Re: fit gives different results for identical functions with different var names Karl <mail.kfr@gmx.net> - 2012-12-21 12:42 +0100
    Re: fit gives different results for identical functions with different var names Marcus Hanson <marcus.hanson@gmail.com> - 2012-12-21 07:32 -0800
      Re: fit gives different results for identical functions with   different var names Hans-Bernhard Bröker <HBBroeker@t-online.de> - 2012-12-21 19:21 +0100
        Re: fit gives different results for identical functions with   different var names Marcus Hanson <marcus.hanson@gmail.com> - 2012-12-21 11:54 -0800
          Re: fit gives different results for identical functions with     different var names Hans-Bernhard Bröker <HBBroeker@t-online.de> - 2012-12-22 01:31 +0100

csiph-web