From 307e40cc9cb703c65b76bcfdc3554bfc5b1e4635 Mon Sep 17 00:00:00 2001 From: josdejong Date: Tue, 8 Oct 2013 19:06:01 +0200 Subject: [PATCH] Few updates in the docs --- docs/matrices.md | 10 +++++----- docs/options.md | 9 ++++----- 2 files changed, 9 insertions(+), 10 deletions(-) diff --git a/docs/matrices.md b/docs/matrices.md index d4dcd15a8..ecb1edcc6 100644 --- a/docs/matrices.md +++ b/docs/matrices.md @@ -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 diff --git a/docs/options.md b/docs/options.md index e6c456c85..0da838c1d 100644 --- a/docs/options.md +++ b/docs/options.md @@ -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`.