Skip to content
Snippets Groups Projects
  1. Jun 25, 2020
    • Lorenzo Moneta's avatar
      Fix in TFormula the parsing of user defined functions which contain... · 084292ab
      Lorenzo Moneta authored
      Fix in TFormula the parsing of user defined functions which contain pre-defined functions (e.g. gaus) in their name. Fixes ROOT-10815.
      For example when a user defines a function with the name "f1gaus" and then reuses that name could cause in same case an error parsing the expression.
      Example :
      ```
      TF1 f1("f1gaus","gaus");
      TF1 f2("f2gaus","f1gaus+gaus(3)");
      ```
      If the function name is for example  "fgaus" it was working before, but not if a character number is used before the pre-defined function name such as  "f1gaus".
      
      Add also a test for parsing these cases in TFormulaParsingTest.
      
      This commit fixes ROOT-10815
      084292ab
  2. Mar 05, 2019
  3. Feb 27, 2019
  4. Nov 20, 2018
  5. Nov 14, 2018
  6. Sep 16, 2018
  7. Sep 15, 2018
  8. Sep 14, 2018
  9. Feb 09, 2018
  10. Dec 08, 2017
  11. Dec 07, 2017
  12. Aug 29, 2017
  13. Aug 28, 2017
    • Arthur Tsang's avatar
      Formul params3 (#860) · e2fb3114
      Arthur Tsang authored
      * add NSUM functionality to TF1
      
      * parse NSUM in TF1
      
      * uncommented cout-s
      
      * adding parameter specification to TFormula (WIP)
      
      * basic parsing of user-defined functions (need to make more robust)
      
      * fix parameter naming; partially fix ReplaceAllName
      
      * mostly fix ReplaceAllName; HandleUserFunctions works on easy cases
      
      * fix parameter naming
      
      * fix ReplaceAllName (again\!) ; add parameter-only option (not well tested)
      
      * easy parametrized function case working (still not robust)
      
      * replacements take place in parallel now
      
      * swaps working properly
      
      * add argument parsing for parametrized functions
      
      * add parsing test for user-functions with arguments
      
      * add parameter range shortcut (e.g. [1..3])
      
      * can parse variables given in form "x[N]"
      
      * inherit parameter values (iff parameter names match)
      
      * fix bug about undefined parameters when using NSUM
      
      * fix whitespace; add a few comments
      
      * run clang-format
      
      * add test for nested functions
      
      * apply clang-format
      
      * fix memory leaks
      
      * clang format (again\!)
      
      * clang-format (missed two lines last time!)
      
      * add documentation to TFormula
      e2fb3114
  14. Feb 17, 2017
  15. Dec 16, 2016
  16. Dec 07, 2016
  17. Sep 16, 2016
  18. Sep 15, 2016
  19. Aug 26, 2016
  20. Jun 14, 2016
  21. Jun 13, 2016
  22. Apr 18, 2016
  23. Mar 14, 2016
  24. Jan 12, 2016
  25. Nov 13, 2015
  26. Oct 05, 2015
  27. Jul 22, 2015
  28. Jul 21, 2015
  29. May 30, 2015
  30. May 29, 2015
Loading