1914 Commits

Author SHA1 Message Date
jos
814abf3f5d Merge branch 'develop' into browser_testing
# Conflicts:
#	package-lock.json
2018-06-06 09:51:37 +02:00
jos
63d05479b4 Merge branch 'develop' into v5 2018-06-06 09:45:13 +02:00
jos
d5957c624c Upgrade to escape-latex@1.1.0, making two ES5 polyfills redundant 2018-06-05 20:20:59 +02:00
jos
d8b275bf87 Fixes failing unit tests on IE11/Edge (part III) 2018-06-04 21:50:04 +02:00
jos
3d8bbd6230 Fixes failing unit tests on IE11/Edge (part II) 2018-06-04 21:33:22 +02:00
jos
ee008d992e Fixes failing unit tests on IE11/Edge 2018-06-04 21:19:10 +02:00
jos
9f3674380d Release v4.4.2 2018-06-02 11:48:11 +02:00
Eric Mansfield
a91998446d
Merge pull request #1124 from ericman314/matrix-inv-bugfix
inv bug fix
2018-06-01 19:04:21 -06:00
Eric Mansfield
07a48b4209 Bug fix in inv.js 2018-06-01 18:54:56 -06:00
Jos de Jong
afdd1c366b
Merge pull request #1118 from josdejong/determinant-lu-decomp
Improved performance of determinant
2018-05-31 20:56:17 +02:00
jos
a389d340e9 Fixed #1065, #1121: Fixed wrong documentation of function compareNatural and clarified the behavior for strings 2018-05-31 20:39:55 +02:00
Eric Mansfield
f6e5a47cda Improved performance of determinant 2018-05-29 22:37:47 -06:00
jos
291cd64df9 Released v4.4.1 2018-05-29 20:45:52 +02:00
Jos de Jong
517cd7d15a
Merge pull request #1114 from ericman314/matrix-inverse-debugging
Add pivoting to matrix inverse algorithm, and tests
2018-05-29 20:41:49 +02:00
Eric Mansfield
ad390e8903 Add pivoting to matrix inverse algorithm, and tests 2018-05-28 14:58:55 -06:00
jos
7e14bcbe02 Released v4.4.0 2018-05-28 20:30:26 +02:00
jos
d08223e7a5 Implemented functions equalText. See #1085. 2018-05-27 14:13:17 +02:00
jos
94accc1889 Implemented function compareText, see #1085 2018-05-26 18:41:31 +02:00
Jos de Jong
ed2e7b5152
Merge pull request #1107 from josdejong/object-assign
Ponyfill Object.assign
2018-05-21 20:16:24 +02:00
Harry Sarson
1aa8266207
replace Object.assign with mathjs util map function.
`Object.assign` is not supported in IE 11 and is used here to perform
a shallow clone on objects. The `map` function from `utils/object.js`
can be used instead for this cloning.
2018-05-21 17:06:25 +01:00
jos
33dbe23bb7 Released v4.3.0 2018-05-21 11:57:11 +02:00
jos
7c4920a9a3 Merge branch 'develop' into v5 2018-05-05 21:20:50 +02:00
Jos de Jong
b5c3ff2bdf
Merge pull request #1097 from jackschmidt/ctranspose
Add complex transpose. A' now takes conjugate.
2018-05-05 21:17:46 +02:00
jos
29aebc51b4 Updated history 2018-05-05 21:16:29 +02:00
Jos de Jong
7332993df7
Merge pull request #976 from ericman314/expm
Matrix exponential
2018-05-05 21:13:12 +02:00
Jack Schmidt
088ac99f65 ctranspose: Simplify method selection 2018-05-05 11:33:26 -04:00
Eric Mansfield
e46934541b Adjust return code in expm.js 2018-05-05 08:10:51 -06:00
jos
b2ae71b50c Released v4.2.2 2018-05-05 10:56:05 +02:00
jos
835aab10b5 Merge branch 'develop' into v5
# Conflicts:
#	lib/expression/embeddedDocs/function/arithmetic/sqrt.js
2018-05-05 09:53:51 +02:00
Eric Mansfield
7d66e34bad Added support for SparseMatrix 2018-05-02 20:51:43 -06:00
Jack Schmidt
9a63e0e82e Bugix for Frobenius norm of complex matrices.
Also improve efficiency from cubic to quadratic by avoiding taking
the trace of a mat-mat multiplication, and rather just summing the
formula for the diagonal entries.

Include a unit test to avoid regressions.
2018-05-02 10:58:42 -04:00
Jack Schmidt
e1f0791574 Add complex transpose. A' now takes conjugate.
In matlab and octave the expression A' produces the Hermitian
conjugate, the complex conjugate of the transpose.

Now transpose produces the transpose, while ctranspose produces
the conjugate transpose. These are equal for real numbers, while
for complex numbers only the conjugate transpose is of much use.
2018-05-02 10:14:10 -04:00
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