- Jun 25, 2020
-
-
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
-
- Mar 05, 2019
-
-
Lorenzo Moneta authored
-
- Feb 27, 2019
-
-
Lorenzo Moneta authored
-
Wolf Behrenhoff authored
Also add test cases for invalid formulae. And fix |= to &= - better all tests be successful instead of any one.
-
- Nov 20, 2018
-
-
Lorenzo Moneta authored
Fix ROOT-9801, by correctly copying the members for lazy initialization in TFormula::Copy. Add also a test for reproducing ROOT-9801
-
- Nov 14, 2018
-
-
Lorenzo Moneta authored
Add a test of TFormulal::Print
-
- Sep 16, 2018
-
-
Danilo Piparo authored
-
- Sep 15, 2018
-
-
Lorenzo Moneta authored
-
- Sep 14, 2018
-
-
Lorenzo Moneta authored
-
- Feb 09, 2018
-
-
Lorenzo Moneta authored
Fix correctly hanflying of whitespace in parameter names. Due to a bug in handling the parameter name, reconstruction a function from an expression with white space did not work
-
- Dec 08, 2017
-
-
Axel Naumann authored
-
Axel Naumann authored
-
- Dec 07, 2017
-
-
Lorenzo Moneta authored
-
Lorenzo Moneta authored
-
- Aug 29, 2017
-
-
Lorenzo Moneta authored
-
- Aug 28, 2017
-
-
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
-
- Feb 17, 2017
-
-
Lorenzo Moneta authored
Fix ROOT-8303. Handle special characters (such as ^,@ or predefined-functions characters) in parameter names.
-
- Dec 16, 2016
-
-
Lorenzo Moneta authored
Fix Formula for missing parameters, ROOT-8182, e.g. TFormula(“f”,“[0]+[2]”) has now 3 parameters and not 2. The second parameter, “p1” is a ghost one. This restores backward compatibility with old TFormula. Add also a test
-
- Dec 07, 2016
-
-
Lorenzo Moneta authored
Add corresponding test
-
- Sep 16, 2016
-
-
Lorenzo Moneta authored
-
- Sep 15, 2016
-
-
Lorenzo Moneta authored
-
- Aug 26, 2016
-
-
Philippe Canal authored
-
Lorenzo Moneta authored
-
- Jun 14, 2016
-
-
Danilo Piparo authored
-
- Jun 13, 2016
-
-
Danilo Piparo authored
-
- Apr 18, 2016
-
-
Lorenzo Moneta authored
-
Lorenzo Moneta authored
Add new tests showing cases which were failing before (test34,35,36)
-
- Mar 14, 2016
-
-
Lorenzo Moneta authored
Add also a corresponding test
-
- Jan 12, 2016
-
-
Pere Mato Vila authored
Added compilation flag -Wshadow for cling and gcc. Fixes ROOT-7378 Insufficient warning level with CMake
-
- Nov 13, 2015
-
-
Lorenzo Moneta authored
Fix handling of composite polynomial functions. They are not linear and the number should be zero. This fixes also ROOT-7755
-
- Oct 05, 2015
-
-
Lorenzo Moneta authored
-
- Jul 22, 2015
-
-
Lorenzo Moneta authored
-
- Jul 21, 2015
-
-
Lorenzo Moneta authored
-
Lorenzo Moneta authored
-
Lorenzo Moneta authored
-
Lorenzo Moneta authored
-
- May 30, 2015
-
-
Lorenzo Moneta authored
Handle also better cases when function name was contained in other name (e.g. sq and sqrt)
-
- May 29, 2015
-
-
Lorenzo Moneta authored
-
Lorenzo Moneta authored
Change TMath::Sign for inter types to be a templated T1 Math::Sign(T1, T2). This fixes problem of Sign(1,double(x)) observed in TFormula. ROOT-7375. Add also an overload of TMath::Sign for LongDouble
-
Lorenzo Moneta authored
This required some changes in the handling of function shortcuts and the loop in ProcessFormula needed to be split in two. Add also function "sign" and tests for "sq" and "sign" functions.
-