Skip to content

Commit

Permalink
Fix security issues and modified logic mathjs
Browse files Browse the repository at this point in the history
  • Loading branch information
fukaoi committed May 11, 2021
1 parent bd6366e commit 8f34ef1
Show file tree
Hide file tree
Showing 3 changed files with 189 additions and 155 deletions.
10 changes: 5 additions & 5 deletions spec/js/file_run_npm.js
Original file line number Diff line number Diff line change
Expand Up @@ -9,11 +9,11 @@ math.pow([[-1, 2], [3, 1]], 2)
// [[7, 0], [0, 7]]

// expressions
math.eval('1.2 * (2 + 4.5)') // 7.8
math.eval('12.7 cm to inch') // 5 inch
math.eval('sin(45 deg) ^ 2') // 0.5
math.eval('9 / 3 + 2i') // 3 + 2i
math.eval('det([-1, 2; 3, 1])') // -7
math.evaluate('1.2 * (2 + 4.5)') // 7.8
math.evaluate('12.7 cm to inch') // 5 inch
math.evaluate('sin(45 deg) ^ 2') // 0.5
math.evaluate('9 / 3 + 2i') // 3 + 2i
math.evaluate('det([-1, 2; 3, 1])') // -7

// chaining
const res = math.chain(3)
Expand Down
Loading

0 comments on commit 8f34ef1

Please sign in to comment.