Skip to content

Commit 2842199

Browse files
committed
Fix - support pow(x,n) function in formula
1 parent 077017c commit 2842199

File tree

2 files changed

+5
-0
lines changed

2 files changed

+5
-0
lines changed

changes.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,9 @@
11
# JSROOT changelog
22

3+
## Changes in 5.2.x
4+
1. Fix - support pow(x,n) function in formula
5+
6+
37
## Changes in 5.2.3
48
1. Fix - potential mix-up in marker attributes handling
59
2. Fix - unzomming of log scale https://root-forum.cern.ch/t/25889

scripts/JSRootCore.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1609,6 +1609,7 @@
16091609
.replace(/\b(cos)\b/gi, 'Math.cos')
16101610
.replace(/\b(tan)\b/gi, 'Math.tan')
16111611
.replace(/\b(exp)\b/gi, 'Math.exp')
1612+
.replace(/\b(pow)\b/gi, 'Math.pow')
16121613
.replace(/pi/g, 'Math.PI');
16131614
for (var n=2;n<10;++n)
16141615
_func = _func.replace('x^'+n, 'Math.pow(x,'+n+')');

0 commit comments

Comments
 (0)