Skip to content

Commit d536a53

Browse files
committed
log, date, build
1 parent e9af9d9 commit d536a53

File tree

3 files changed

+16
-2
lines changed

3 files changed

+16
-2
lines changed

build/jsroot.js

Lines changed: 14 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -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 */
5719957205
function Gaus(x, mean, sigma, norm) {
@@ -57663,6 +57669,7 @@ LogNormal: LogNormal,
5766357669
Polynomial1eval: Polynomial1eval,
5766457670
Polynomialeval: Polynomialeval,
5766557671
Prob: Prob,
57672+
Sq: Sq,
5766657673
Student: Student,
5766757674
StudentI: StudentI,
5766857675
beta: 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

changes.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@
55
2. Fix - several bugs in TFormula parsing
66
3. Fix - correctly use saved buffer in TF1/TF2
77
4. Fix - properly adjust size of stats box
8+
5. Fix - support pol0..pol9 functions
89

910

1011
## Changes in 7.5.1

modules/core.mjs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ const version_id = '7.5.x',
44

55
/** @summary version date
66
* @desc Release date in format day/month/year like '14/04/2022' */
7-
version_date = '26/10/2023',
7+
version_date = '27/10/2023',
88

99
/** @summary version id and date
1010
* @desc Produced by concatenation of {@link version_id} and {@link version_date}

0 commit comments

Comments
 (0)