Moved docs on data types in a separate directory

This commit is contained in:
josdejong 2013-11-27 12:14:47 +01:00
parent ffababc92d
commit 335dccfa5b
8 changed files with 18 additions and 18 deletions

View File

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

View File

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

View File

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

View File

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