Support TF1 with TFormula as function 
Support TF1 with TFormula as function 

New ROOT6 support complex code in the TFormula.
This can be if else, multiple return and so on.
Try our best to convert such function to JavaScript code,
which can be used with JavaScript Function class
bellenot/jsroot,root-project/jsroot,linev/jsroot,root-project/jsroot,linev/jsroot,bellenot/jsroot,bellenot/jsroot