Uploaded image for project: 'ROOT'
  1. ROOT
  2. ROOT-8105

TFormula does not always handle 'gaus' correctly.

    Details

      Description

      Hi,

      As demonstrated below TFormula no longer support "(1-gaus)" (But still support many other usage of 'straight' 'gauss'):

      root [1] f = new TF1("test","(1-gaus(0))*[0]",0,1)
      (TF1 *) 0x7f9bd1dfadc0
      root [2] f = new TF1("test","gaus*[0]",0,1)
      (TF1 *) 0x7f9bd3c04b30
      root [3] f = new TF1("test","1+gaus*[0]",0,1)
      (TF1 *) 0x7f9bd1cb0110
      root [4] f = new TF1("test","1-gaus*[0]",0,1)
      (TF1 *) 0x7f9bd1e24970
      root [5] f = new TF1("test","(1-gaus)*[0]",0,1)
      input_line_31:1:82: error: use of undeclared identifier 'gaus'
      Double_t TFormula____id16595312676895837307(Double_t *x,Double_t *p){ return (1-{gaus})*p[0] ; }
                                                                                       ^
      Error in <TFormula::Eval>: Can't find TFormula____id16595312676895837307 function prototype with arguments Double_t*,Double_t*
      Error in <TFormula::ProcessFormula>: "gaus" has not been matched in the formula expression
      Error in <TFormula::ProcessFormula>: Formula "(1-gaus)*[p0]" is invalid !
      (TF1 *) 0x7f9bd3c0b7e0

      Thanks,
      Philippe, Lynn, Paul.

        Attachments

          Activity

            People

            • Assignee:
              moneta Lorenzo Moneta
              Reporter:
              garren Lynn Garren
            • Votes:
              0 Vote for this issue
              Watchers:
              4 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: