mirror of
https://github.com/josdejong/mathjs.git
synced 2026-01-18 14:59:29 +00:00
[3,6,9] for 1*3,2*3,3*3
This commit is contained in:
parent
c389ad336e
commit
4c8dda8824
@ -463,7 +463,7 @@ with an entry for every visible statement.
|
||||
|
||||
```js
|
||||
// a multi line expression
|
||||
math.eval('1 * 3 \n 2 * 3 \n 3 * 3'); // ResultSet, [1, 3, 9]
|
||||
math.eval('1 * 3 \n 2 * 3 \n 3 * 3'); // ResultSet, [3, 6, 9]
|
||||
|
||||
// semicolon statements are hided from the output
|
||||
math.eval('a=3; b=4; a + b \n a * b'); // ResultSet, [7, 12]
|
||||
@ -517,4 +517,4 @@ parser.eval('# define some variables');
|
||||
parser.eval('width = 3'); // 3
|
||||
parser.eval('height = 4'); // 4
|
||||
parser.eval('width * height # calculate the area'); // 12
|
||||
```
|
||||
```
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user