"function" should be in the form of a C-type function, with the letters a-q used as free parameters which you name, ^ is a free parameter (named automatically using r1,r2,r3 etc), s-z are dependent variables (you can use x0,x1,x2,... etc. as well). cos,sin,exp,tan,pow are treated explicitly and not turned into free parameters. ax is turned into (a*x), but don't try to rely on this too much - a properly formatted function is best! Remember this is C, so use pow(x,y) rather than x**y.
"function" should be in the form of a C-type function, with the letters `a-q` used as free parameters which you name, `^` is a free parameter (named automatically using `r1`,`r2`,`r3` etc), `s-z` are dependent variables (you can use `x0`,`x1`,`x2`,... etc. as well). `cos`,`sin`,`exp`,`tan`,`pow` are treated explicitly and not turned into free parameters. `ax` is turned into `(a*x)`, but don't try to rely on this too much - a properly formatted function is best! Remember this is C, so use `pow(x,y)` rather than `x**y`.
The filename is the name of the file that contains the data. This should be in space-separated columns.
...
...
@@ -39,61 +41,62 @@ Examples:
``
fitnd "^+^*x0" file.dat
``
Fits file.dat, which contains <x,y> data, to a linear function.
Fits file.dat, which contains `<x,y>` data, to a linear function.
``
fitnd "^+^*x0*^x1" file2.dat
fitnd "^+^*x0*^x1" file2.dat
``
Fits file2.dat, which contains <x,y,z> data, to a function a+b*x*y.
Fits file2.dat, which contains <x,y,z> data, to a function `a+b*x*y`.