Re: [ROOT] Error27: Too many constants in expression

From: Rene Brun (Rene.Brun@cern.ch)
Date: Wed May 17 2000 - 19:47:32 MEST


Hi Wolfgang,
In the recently released 2.24/05, I increased the maximum number of
constants in TFormula from 50 to 200. Would you mind testing with this
version, or, if you cannot, send me a working macro showing the problem.
I will test it myself.
This maximum is currently harwired in TFormula. This should be made more
dynamic, but this requires some work to deal with recursivity.

Rene Brun

On Wed, 17 May 2000, geithner wrote:

> Hi rooters !
> 
> I have the problem that I want to build a function, which constists of a
> sum of about 100 lorentzian functions multiplied by a variable
> amplitude: ampl[linepos]*gamma/2/((x-linepos)^2+(gamma/2)^2), which
> depends on x. Compiling works fine, but when I use this lengthy function
> to simulate a spectrum, I get an error message " Error 27: too many
> constants in expression". When I limit the number of lorentzians I
> include, the error vanishes, but it would be nice to include all the
> lines I have...
> 
> Any idea ?
> 
> Wolfgang Geithner
> 



This archive was generated by hypermail 2b29 : Tue Jan 02 2001 - 11:50:25 MET