We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 0fde146 commit e9af9d9Copy full SHA for e9af9d9
modules/hist/TF1Painter.mjs
@@ -57,6 +57,12 @@ function proivdeEvalPar(obj) {
57
.replace(/\bTMath::/g, 'this._math.')
58
.replace(/\bROOT::Math::/g, 'this._math.');
59
60
+ if (_func.match(/^pol[0-9]$/) && (parseInt(_func[3]) === obj.fNpar - 1)) {
61
+ _func = '[0]';
62
+ for (let k = 1; k < obj.fNpar; ++k)
63
+ _func += ` + [${k}] * `+ ((k === 1) ? 'x' : `Math.pow(x,${k})`);
64
+ }
65
+
66
for (let i = 0; i < obj.fNpar; ++i)
67
_func = _func.replaceAll(pprefix + i + ']', `(${obj.GetParValue(i)})`);
68
0 commit comments