[3,6,9] for 1*3,2*3,3*3

This commit is contained in:
Ole Kröger 2015-02-19 15:37:04 +01:00
parent c389ad336e
commit 4c8dda8824

View File

@ -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
```
```