@@ -11,7 +11,7 @@ const version_id = '7.5.x',
1111
1212/** @summary version date
1313 * @desc Release date in format day/month/year like '14/04/2022' */
14- version_date = '26 /10/2023',
14+ version_date = '27 /10/2023',
1515
1616/** @summary version id and date
1717 * @desc Produced by concatenation of {@link version_id} and {@link version_date}
@@ -57194,6 +57194,12 @@ function Prob(chi2, ndf) {
5719457194 return chisquared_cdf_c(chi2,ndf,0);
5719557195}
5719657196
57197+ /** @summary Square function
57198+ * @memberof Math */
57199+ function Sq(x) {
57200+ return x * x;
57201+ }
57202+
5719757203/** @summary Gaus function
5719857204 * @memberof Math */
5719957205function Gaus(x, mean, sigma, norm) {
@@ -57663,6 +57669,7 @@ LogNormal: LogNormal,
5766357669Polynomial1eval: Polynomial1eval,
5766457670Polynomialeval: Polynomialeval,
5766557671Prob: Prob,
57672+ Sq: Sq,
5766657673Student: Student,
5766757674StudentI: StudentI,
5766857675beta: beta,
@@ -109953,6 +109960,12 @@ function proivdeEvalPar(obj) {
109953109960 .replace(/\bTMath::/g, 'this._math.')
109954109961 .replace(/\bROOT::Math::/g, 'this._math.');
109955109962
109963+ if (_func.match(/^pol[0-9]$/) && (parseInt(_func[3]) === obj.fNpar - 1)) {
109964+ _func = '[0]';
109965+ for (let k = 1; k < obj.fNpar; ++k)
109966+ _func += ` + [${k}] * `+ ((k === 1) ? 'x' : `Math.pow(x,${k})`);
109967+ }
109968+
109956109969 for (let i = 0; i < obj.fNpar; ++i)
109957109970 _func = _func.replaceAll(pprefix + i + ']', `(${obj.GetParValue(i)})`);
109958109971
0 commit comments