mirror of
https://github.com/josdejong/mathjs.git
synced 2026-01-18 14:59:29 +00:00
Few updates in the docs
This commit is contained in:
parent
717ea9f8f4
commit
307e40cc9c
@ -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
|
||||
|
||||
@ -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`.
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user