From: Bernard M. <me...@it...> - 2005-08-25 16:41:50
|
Dear Madam/Sir, I always wondered why the number of variables in a user defined function is restricted to five. This prevented me from defining "trivial" functions such as the scalar product of two vectors in R^3 ... Changing the line # define MAX_NUM_VAR 5 in 'syscfg.h' e.g. to: # define MAX_NUM_VAR 10 and, for consistency, making an appropriate change in 'gnuplot.doc' e.g. to: New user-defined variables and functions of one through ten variables may be declared and used anywhere, including on the `plot` command itself. User-defined function syntax: <func-name>( <dummy1> {,<dummy2>} ... {,<dummy10>} ) = <expression> where <expression> is defined in terms of <dummy1> through <dummy10>. seems to work OK. Perhaps the constant MAX_NUM_VAR could in fact be an option in the configure/make process? Anyhow, thank you very much for GNUPLOT! with best regards, Bernard Metsch |
From: Lars H. <lhe...@us...> - 2005-08-26 11:36:37
|
> Perhaps the constant MAX_NUM_VAR could in fact be an option in the > configure/make process? Even better: make it runtime-configurable, or remove the limitation completely. |
From: Petr M. <mi...@ph...> - 2005-09-17 14:20:51
|
> # define MAX_NUM_VAR 5 > > in 'syscfg.h' e.g. to: > > # define MAX_NUM_VAR 10 I vote for this change .. maybe even to 12 (i.e., 4 vectors)? --- PM |
From: Petr M. <mi...@ph...> - 2005-10-02 22:40:56
|
On Sat, 17 Sep 2005, Petr Mikulik wrote: >> # define MAX_NUM_VAR 5 >> >> in 'syscfg.h' e.g. to: >> >> # define MAX_NUM_VAR 10 > > I vote for this change .. maybe even to 12 (i.e., 4 vectors)? No answer, thus agreed to set the default to 12? --- PM |