diff --git a/docs/bignumbers.md b/docs/datatypes/bignumbers.md similarity index 100% rename from docs/bignumbers.md rename to docs/datatypes/bignumbers.md diff --git a/docs/complex_numbers.md b/docs/datatypes/complex_numbers.md similarity index 100% rename from docs/complex_numbers.md rename to docs/datatypes/complex_numbers.md diff --git a/docs/data_types.md b/docs/datatypes/index.md similarity index 73% rename from docs/data_types.md rename to docs/datatypes/index.md index 1ade15ef9..aca86e310 100644 --- a/docs/data_types.md +++ b/docs/datatypes/index.md @@ -8,12 +8,12 @@ Complex number or Array. The supported data types are: - Boolean -- [Number](https://github.com/josdejong/mathjs/blob/master/docs/numbers.md) -- [BigNumber](https://github.com/josdejong/mathjs/blob/master/docs/bignumbers.md) -- [Complex](https://github.com/josdejong/mathjs/blob/master/docs/complex_numbers.md) -- [Array](https://github.com/josdejong/mathjs/blob/master/docs/matrices.md) -- [Matrix](https://github.com/josdejong/mathjs/blob/master/docs/matrices.md) -- [Unit](https://github.com/josdejong/mathjs/blob/master/docs/units.md) +- [Number](numbers.md) +- [BigNumber](bignumbers.md) +- [Complex](complex_numbers.md) +- [Array](matrices.md) +- [Matrix](matrices.md) +- [Unit](units.md) - String Example usage: diff --git a/docs/matrices.md b/docs/datatypes/matrices.md similarity index 100% rename from docs/matrices.md rename to docs/datatypes/matrices.md diff --git a/docs/numbers.md b/docs/datatypes/numbers.md similarity index 95% rename from docs/numbers.md rename to docs/datatypes/numbers.md index f4f25b725..864105c28 100644 --- a/docs/numbers.md +++ b/docs/datatypes/numbers.md @@ -3,7 +3,7 @@ Math.js supports two types of numbers: - Number for fast floating point arithmetic, described on this page. -- [BigNumber](https://github.com/josdejong/mathjs/blob/master/docs/bignumbers.js) +- [BigNumber](bignumbers.js) for arbitrary precision arithmetic. The default number type can be configured when instantiating math.js: diff --git a/docs/units.md b/docs/datatypes/units.md similarity index 100% rename from docs/units.md rename to docs/datatypes/units.md diff --git a/docs/expressions.md b/docs/expressions.md index 31328d1c5..43f23051e 100644 --- a/docs/expressions.md +++ b/docs/expressions.md @@ -268,7 +268,7 @@ Operators | Description Functions are called by entering their name, followed by zero or more arguments enclosed by parentheses. All available functions are listed on the -page [Functions](https://github.com/josdejong/mathjs/blob/master/docs/functions.md). +page [Functions](functions.md). ```js math.eval('sqrt(25)'); // 5 @@ -296,7 +296,7 @@ parser.eval('g(2, 3)'); // 8 Math.js has a number of built in constants such as `pi` and `e`. All available constants are listed on he page -[Constants](https://github.com/josdejong/mathjs/blob/master/docs/constants.md). +[Constants](constants.md). ```js // use constants @@ -375,7 +375,7 @@ math.eval('string(2.3)'); // "2.3" Math.js uses regular JavaScript numbers, which are floating points with a limited precision and limited range. The limitations are described in detail -on the page [Numbers](https://github.com/josdejong/mathjs/blob/master/docs/numbers.md). +on the page [Numbers](datatypes/numbers.md). ```js math.eval('1e-325'); // 0 @@ -403,7 +403,7 @@ math.format(ans, {precision: 14}); // "0.3" Math.js supports big numbers for calculations with an arbitrary precision. The pros and cons of Number and BigNumber are explained in detail on the page -[Numbers](https://github.com/josdejong/mathjs/blob/master/docs/numbers.md). +[Numbers](datatypes/numbers.md). BigNumbers are slower, but have a higher precision. Calculations with big numbers are supported only by arithmetic functions. @@ -478,7 +478,7 @@ parser.eval('number(a)'); // Error: 2 + i is no valid number math.js supports units. Units can be used in basic arithmetic operations like add and subtract, and units can be converted from one to another. An overview of all available units can be found on the page -[Units](https://github.com/josdejong/mathjs/blob/master/docs/units.md). +[Units](datatypes/units.md). Units can be converted using the operator `in`. diff --git a/docs/index.md b/docs/index.md index 6aadf6c46..9da09e6bc 100644 --- a/docs/index.md +++ b/docs/index.md @@ -3,12 +3,12 @@ - [Getting Started](getting_started.md) - [Constants](constants.md) - [Functions](functions.md) -- [Data Types](data_types.md) - - [Numbers](numbers.md) - - [Big Numbers](bignumbers.md) - - [Complex Numbers](complex_numbers.md) - - [Matrices](matrices.md) - - [Units](units.md) +- [Data Types](datatypes/index.md) + - [Numbers](datatypes/numbers.md) + - [Big Numbers](datatypes/bignumbers.md) + - [Complex Numbers](datatypes/complex_numbers.md) + - [Matrices](datatypes/matrices.md) + - [Units](datatypes/units.md) - [Expressions](expressions.md) - [Chained Operations](chained_operations.md) - [Extend](extend.md)