Few updates in the docs

This commit is contained in:
josdejong 2013-10-08 19:06:01 +02:00
parent 717ea9f8f4
commit 307e40cc9c
2 changed files with 9 additions and 10 deletions

View File

@ -28,11 +28,11 @@ var c = math.multiply(a, b); // Matrix, [[19, 22], [43, 50]]
var d = c.subset(math.index(1, 0)); // 43
```
The type of matrix output from functions is determined from the input:
An array as input will return an Array, a Matrix as input will return a Matrix.
In case of mixed input or no matrix as input, the type of output is determined
by the option `math.matrix.default`, which can have a string `"array"` or
`"matrix"` (default) as value.
Where possible, the type of matrix output from functions is determined from the
input: An array as input will return an Array, a Matrix as input will return a
Matrix. In case of mixed input or no matrix as input, the type of output is
determined by the option `math.matrix.default`, which can have a string
`"array"` or `"matrix"` (default) as value.
## Expressions

View File

@ -10,8 +10,7 @@ Math.js contains a number of global options. The options are defined in
- `matrix.default`. The default type of matrix output for functions. Available
values are: `"array"` or `"matrix"` (default).
The type of matrix output from functions is when possible determined from the
input: An array as input will return an Array, a Matrix as input will return
a Matrix. In case of mixed input or no matrix as input, the type of output is
determined by the option `math.matrix.default`.
Where possible, the type of matrix output from functions is determined from
the function input: An array as input will return an Array, a Matrix as input
will return a Matrix. In case of mixed input or no matrix as input, the type
of output is determined by the option `math.matrix.default`.