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
Harry Sarson
45fa1edb16
remove now unused require for matrixmarket
...
The code that depended on matrixmarket has been removed in c23761be but
I forgot to remove the `require()` in that commit.
2018-05-02 15:20:43 +01: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
20e5682afc
First build then test in prepublishOnly
2018-05-02 10:37:41 +02:00
jos
6e7aa106d0
Released v5.2.1
v4.2.1
2018-05-02 10:30:58 +02:00
jos
68b5e3ffe6
Released v5.2.0
v4.2.0
2018-05-02 10:05:16 +02:00
jos
6308e5b7fc
Added missing embedded docs
2018-05-02 09:51:08 +02:00
Harry Sarson
29052cbdcc
use math.create() to prevent tests changing global state.
...
Tests should not import functions into global math namespace.
2018-05-01 17:40:57 +01:00
Harry Sarson
c23761bee0
separate tests that depend on node
...
Ddds new directory 'test/node' for tests which require node.
In practice these tests are the ones that depend on matrixmarket.
2018-05-01 17:38:51 +01:00
jos
a4fce32c67
Updated history
2018-04-30 20:35:28 +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
Jos de Jong
5890ca6f3d
Merge pull request #1092 from harrysarson/use-strict
...
Tidy javascript files in lib
2018-04-30 20:30:50 +02:00
jos
c22ea4e1d7
Updated history
2018-04-30 20:28:59 +02:00
Harry Sarson
0053546868
fix testing of log2(0)
2018-04-29 19:31:30 +01:00
Harry Sarson
95f988181f
fix tests where bignumbers is infinite or NaN
2018-04-29 19:20:06 +01:00
Harry Sarson
b452d55cf7
change expected error message.
...
presumably typed-function now counts from zero.
2018-04-29 19:19:11 +01:00
Harry Sarson
bd868e7f64
Remove tests for null parameters.
...
mathjs no longer coerses null to zero so don't test for this.
2018-04-29 19:06:36 +01: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
v4.1.2
2018-04-18 14:17:30 +02:00
jos
5e705967a7
Updated history
2018-04-17 20:13:11 +02:00
Jos de Jong
f710fd477a
Merge pull request #1084 from ericman314/develop
...
Fixed decade/year, added decades, added test
2018-04-17 20:11:32 +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
24453601db
Remove duplicate generation of docs during prepublishOnly
2018-04-11 13:40:26 +02:00
jos
4d207e5223
Released v4.1.1
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
7eaeabb381
Describe one time password on publish
2018-04-08 20:24:50 +02:00
jos
e1bf47da07
Fixed merge conflict
v4.1.0
2018-04-08 20:19:45 +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
52e4a53e75
Change the plot example to actually use mathjs :D (see #1074 )
2018-04-02 11:38:44 +02:00
Jos de Jong
975284de0c
Merge pull request #1074 from josdejong/browser-example-plot
...
Uses unpkg.com instead of wzrd for cdn.
2018-04-02 11:22:02 +02:00
Jos de Jong
d96fdde6f5
Merge pull request #1071 from rwieruch/patch-1
...
Join Slack Community: Briim - Machine Learning in JavaScript
2018-04-02 10:44:40 +02:00
Harry Sarson
26fdd7099e
Uses unpkg.com instead of wzrd for cdn.
...
https://wzrd.in is down and so example breaks.
This commit uses unpkg instead which should be more reliable.
2018-03-26 22:34:13 +01:00
jos
884f59bb5d
Updated history and contributors list
2018-03-24 11:56:58 +01:00
Jos de Jong
138bebd655
Merge pull request #1060 from dakotablair/develop
...
Fixed #851 : More consistent behavior of sqrt, nthRoot, and pow
2018-03-24 11:52:44 +01:00
Dakota Blair
c2917dca52
Fixed offset bug.
2018-03-21 19:46:31 +00:00
Dakota Blair
13d1ad7a6a
Updated _nthComplexRoots based on feedback.
2018-03-21 19:05:10 +00:00
Dakota Blair
cbcf27282e
Updated behavior of nthRoots
2018-03-21 19:05:09 +00:00