I have seen the comparison operators can be used in the equation part of TF1. Example:
TF1 * f1= new TF1(“f1”, “((x < [0]) * [1] * (x - [0])) + [2]”, 0, 100 );
I wonder if we can also use the condition operators in the equation part? Example:
If it’s not possible, can “the way around it” be the inline expressions using a user defined Cling function by name as stated in TF1 link here? I also attach sample down below.
I also checked the TFormula, but I came to conclusion after reading some comments that we cannot REPLACE the equation part of TF1 with TFormula. Plus, there is not much example about the usage of TFormula. Please, refer me some simple TFormula application if there is any somewhere. On the TFormula link, there is an example which I suspect the equation is missing " " quotation mark. Can you confirm that! I put the part down below.