1875 Commits

Author SHA1 Message Date
jos
6e7aa106d0 Released v5.2.1 2018-05-02 10:30:58 +02:00
jos
68b5e3ffe6 Released v5.2.0 2018-05-02 10:05:16 +02:00
jos
6308e5b7fc Added missing embedded docs 2018-05-02 09:51:08 +02:00
Jos de Jong
9006e76f7e
Merge pull request #1046 from harrysarson/es6-maths
Implementation of EMCA 2015 maths functions in mathjs
2018-04-30 20:34:57 +02:00
Harry Sarson
4a693c83b8
Fixes bignumer implementation of es6 math functions.
Removes use of static property `ONE` which is not defined anymore.
2018-04-29 19:06:08 +01:00
Harry Sarson
29aeb4700f
ensure all files end with trailing \n 2018-04-27 21:41:02 +01:00
Harry Sarson
af417d8384
add use strict to the top of a bunch of files 2018-04-27 21:28:28 +01:00
Henrique Ferrolho
308d55dac4 Adds matrix function math.sqrtm(A) (#1086)
* Adds Matrix function math.sqrtm(A)

The current implementation is based on the Babylonian iterative method

* Removing default parameter as they are only supported from ES6/ES2015 onwards

* Increases the robustness of the `math.sqrtm()` Babylonian iterative method

* Adds Denman–Beavers iteration method to compute `X*X = A`

The Babylonian method is numerically unstable and more likely to fail to converge. For that reason, the Denman–Beavers iteration method is the one being used in the current version.

* Adds LaTeX for math.sqrtm(A)

* Updates `math.sqrtm(A)` suggestions list

* Forgot to require latex...

* Adds unit tests for `math.pow(math.sqrtm(A), 2) == A`

* Switches from SyntaxError to Error

Edits error message

* Adds unit tests for non-square matrices and LaTeX conversion

* Changes according to feedback

- Removes Babylonian method implementation;
- Adds unit tests for BigNumber matrices
- sqrtm.test.js refactoring
- Edits LaTeX conversion

* Ensures input/output type persistence

* Changes math.deepEqual to assert.deepEqual (or to approx.deepEqual where appropriate)

* Fixes BigNumber unit test
2018-04-27 22:00:00 +02:00
jos
862061cd89 Released version 4.1.2 2018-04-18 14:17:30 +02:00
Jos de Jong
04442daf52
Merge branch 'develop' into develop 2018-04-17 20:08:52 +02:00
jos
35dd854d16 Fixed #1082: implemented support for unit plurals decades, centuries, and millennia 2018-04-17 20:02:15 +02:00
Eric Mansfield
2fcec34c9a Fixed year/decade and wrote test for checking in future 2018-04-15 12:59:49 -06:00
jos
4d207e5223 Released v4.1.1 2018-04-11 13:30:14 +02:00
jos
0c87a1a64f Refactored local variables arg1, arg2 to arg0, arg1 to match the argument index 2018-04-11 13:27:50 +02:00
jos
229ff3d8ff Fixed #1063: derivative not working when resolving a variable with unary minus like math.derivative('-x', 'x') 2018-04-11 13:25:44 +02:00
jos
0dd092666a Fixed indentation 2018-04-08 20:29:37 +02:00
jos
b7b8b2af49 Released version 4.1.0 2018-04-08 20:17:36 +02:00
jos
ce4c294329 Updated history, added unit tests for passing a matrix to math.print 2018-04-08 20:13:35 +02:00
Jos de Jong
cbeff911d8
Merge pull request #1058 from jean-emmanuel/master
Add support for Array values argument in print function
2018-04-08 20:02:35 +02:00
jean-emmanuel
f4273d991a Add tests, example and documentation (Add support for Array values argument in print function) 2018-04-05 11:46:32 +02:00
jos
7fefa33d84 Fixed #1077: Serialization/deserialization to JSON with reviver not being supported by nodes 2018-04-04 22:09:43 +02:00
jos
21f2d46784 Fixed #1072: Added support for long and short prefixes for the unit bar 2018-04-04 11:35:18 +02:00
jos
82eec1078e Fixed #1016: Extended math.typeof with support for ResultSet and nodes like SymbolNode 2018-04-04 11:24:45 +02:00
jos
4e5cc854f0 Released version 4.0.1 2018-03-17 20:34:08 +01:00
jos
b00e0b7460 Fixed #1061: math.unit not accepting input like 1/s 2018-03-17 14:01:29 +01:00
Favian Contreras
d8ec9c3638
More functions from ECMA 6 draft (expm1, log2, and log1p). 2018-03-08 17:10:59 +00:00
jean-emmanuel
0e05c0f9c7 Add support for Array values argument in print function 2018-03-04 14:08:55 +01:00
Clément P
59178319e4
Update isPrime.js 2018-03-01 12:08:28 +01:00
jos
a99b8fbe4f Released v4.0.0 2018-02-25 14:09:53 +01:00
jos
7f6f997fa3 Merge branch 'develop' into v4 2018-02-25 14:00:41 +01:00
jos
3059e1b94f Fixed truncation of some docs when generating markdown (see #1040) 2018-02-21 13:22:08 +01:00
jos
6613f1c844 Release the second release candidate 4.0.0-rc.2 2018-02-21 11:36:43 +01:00
jos
417dc049de Invert some checks for zero 2018-02-21 10:56:33 +01:00
jos
0b9f22e9d8 Refactoring in handling DenseMatrix/SparseMatrix cases in most functions 2018-02-21 10:51:21 +01:00
jos
bf3f62b564 Upgraded to typed-function@1.0.0 2018-02-20 20:59:05 +01:00
jos
20f317c524 Released mathjs v3.20.2 2018-02-07 16:55:40 +01:00
jos
c9fcfc6b96 Publish release candidate v4.0.0-rc.1 2018-02-04 15:13:44 +01:00
jos
99ab11b234 Dropped constant uninitialized 2018-02-04 13:09:09 +01:00
Jos de Jong
e631771df0
Merge branch 'v4' into v4_fn_implicit_multiplication 2018-02-04 11:58:15 +01:00
Jos de Jong
cdda817d9f
Merge pull request #1036 from ericman314/implicit-multiplication
Implicit multiplication
2018-02-04 11:55:15 +01:00
Eric Mansfield
83862d2996 Refactored token state history into own function 2018-02-03 14:19:48 -07:00
jos
11b4c03460 Remove support for calling a function returned by a function, parse as implicit multiplication instead. See #1035 2018-02-03 21:52:18 +01:00
Eric Mansfield
090f4c920f Added 'number/number (', and tests 2018-02-03 09:44:30 -07:00
Eric Mansfield
b50d4fe2f1 Adjusted "rule 2" to match "number / number symbol" 2018-02-03 08:16:46 -07:00
jos
cb84036e8e Changes according to feedback from Harry 2018-02-01 19:45:07 +01:00
jos
a11dfa9bcc Merge branch 'v4' into v4_binary_operator_node 2018-01-31 14:23:34 +01:00
jos
ece963bcdd Merge branch 'develop' into v4
# Conflicts:
#	lib/expression/node/ConstantNode.js
2018-01-31 11:28:14 +01:00
jos
82b41e696a - Implemented OperatorNode.isUnary and OperatorNode.isBinary.
- Explicit checks for number of arguments everywhere working with `OperatorNode` and `FunctionNode`.
- Fixed #1014: derivative silently ignoring additional arguments.
2018-01-31 11:00:39 +01:00
Max Bruckner
9126130794 toTex: Escape special characters in strings 2018-01-31 02:54:24 +01:00
jos
0b6c0c13f7 Merge branch 'v4' into v4_constant_node
# Conflicts:
#	HISTORY.md
2018-01-27 16:58:17 +01:00