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
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
af417d8384
add use strict to the top of a bunch of files
2018-04-27 21:28:28 +01:00
Favian Contreras
d8ec9c3638
More functions from ECMA 6 draft (expm1, log2, and log1p).
2018-03-08 17:10:59 +00: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
4469f6bd0c
Remove support for implicit conversion of null to 0. See #830 .
2018-01-23 20:26:38 +01:00
jos
02b1478e6d
Fixed #954 : Functions add and multiply not working when passing three or more arrays or matrices
2017-10-18 19:58:31 +02:00
jos
fa01e993af
Refactored x && x.isMatrix === true into type.isMatrix(x), same with isDenseMatrix and isSparseMatrix
2017-08-12 13:24:39 +02:00
jos
6d418b9b61
Refactored x && x.isFraction === true into type.isFraction(x)
2017-08-12 12:05:11 +02:00
jos
e10dd5bce5
Refactored x && x.isBigNumber === true into type.isBigNumber(x)
2017-08-12 11:54:53 +02:00
jos
26e70a4acd
Refactored x.isComplex === true into type.isComplex(x)
2017-08-12 11:32:40 +02:00
Harry Sarson
a5692e1d0a
Extension of pow function to support Infinite exponents.
2017-04-23 13:13:23 +01:00
Dzmitry Litskalau
a531715442
Fix xgcd for negative values
2017-03-06 18:28:13 +03:00
jos
a168041374
Functions add and multiply now accept more than two arguments. See #739 .
2016-11-18 15:06:37 +01:00
jos
c2d39cc0f6
Remove some commented console logs (see #709 )
2016-09-12 20:11:48 +02:00
jos
b2066e53f6
Replaced toTex definitions using the default toTex template with "undefined" and a comment (see #636 )
2016-04-15 11:00:03 +02:00
jos
8068f4afa8
Fixed #636 : More strict toTex templates, reckon with number of arguments
2016-04-11 21:31:15 +02:00
jos
bbfa7d51df
Fixed #484 , #555 : inaccuracy of math.sinh. Also using ES6 Math functions when available
2016-04-03 13:47:57 +02:00
jos
ab454c0750
Fixed #623 : nthRoot of zero with a negative root returned 0 instead of Infinity
2016-03-24 20:25:14 +01:00
jos
15aca5e4d0
Changed casing of the values of config options number and matrix to match the actual name of the classes.
2016-03-04 19:41:54 +01:00
jos
0922121e82
Added core functions config, import, and typed to the docs. Updated other docs
2016-02-27 20:37:26 +01:00
jos
fb141fb885
Merge branch 'decimal_v5' into develop
...
Conflicts:
HISTORY.md
test/function/trigonometry/cot.test.js
2016-02-27 11:39:56 +01:00
jos
94986762fb
Merge branch 'develop' into feature/objectsupport
...
Conflicts:
HISTORY.md
2016-02-24 08:58:01 +01:00
jos
73cb353260
Refactored bignumber implementations of acos, acosh, asinh, atan, atan2, atanh, cosh, sinh, tanh, cbrt
2016-02-14 22:23:18 +01:00
jos
c558cf496e
Fixed all broken unit tests
2016-02-14 21:51:37 +01:00
jos
60cf4781e8
Upgraded to decimal.js v5. Replaced .constructor with .clone. Still lots of issues to fix
2016-02-13 15:48:54 +01:00
jos
e0bba8ff88
Merge branch 'develop' into complex
...
Conflicts:
lib/core/import.js
2016-02-13 13:52:48 +01:00
jos
8639f85dab
Updated history and extended docs
2016-02-13 13:48:09 +01:00
jos
33ddfb70a5
Updated docs for pow (see #525 )
2016-02-13 13:44:12 +01:00
Eric
d6769b8cd5
Removed 'realmode' config option and replaced with 'predictable'
2016-02-13 04:21:11 +00:00
Robert Eisele
16b68d2b86
Ups, copy and paste error
2016-02-11 03:54:23 +01:00
Robert Eisele
fcfd43a218
Added complex.js
2016-01-29 01:56:06 +01:00
jos
3aa38eef62
Fixed #529 : Matrix multiplication no longer squeezes scalar outputs (breaking change)
2016-01-08 21:20:33 +01:00
Eric
a5109b7327
Realmode exponentiation with unit tests
2015-12-25 19:58:48 +00:00
Eric
a14b8b7a68
Added VA, VAR, and custom logic to convert between them.
2015-12-24 05:45:13 +00:00
Eric
34f991949d
Added support for complex units
2015-11-28 20:09:22 +00:00
jos
2e1d943595
Extended arithmetic functions with support for Units with BigNumber/Fraction value. (One failing unit test!)
2015-11-28 11:04:36 +01:00
jos
4b08522d44
Fixed nthRoot(-2, 3) for bignumbers (see #496 )
2015-10-29 19:04:37 +01:00
Eric
f3a98f50af
Replaced nthRoot algorithm with direct calculation
2015-10-29 03:49:29 +00:00
jos
b1864388c7
Fixed #480 : nthRoot not working on Internet Explorer (up to IE 11)
2015-10-12 08:24:59 +02:00
jos
54e922d736
Implemented function hypot.
2015-09-17 20:39:29 +02:00
jos
d818e48321
Added support for units to cbrt
2015-09-17 19:48:25 +02:00
jos
a21b4da999
Updated docs an added unit test for returning all cubic roots of a real number.
2015-09-17 09:22:57 +02:00
jos
faa3087d92
Added a few todo's
2015-09-16 22:50:00 +02:00
jos
e42874c353
Added a few more examples
2015-09-16 22:41:27 +02:00
jos
4d18dcb3e4
Implemented function cbrt for numbers, BigNumbers, and complex numbers
2015-09-16 22:37:06 +02:00
Robert Eisele
2f1e123e5e
Fixed lcm(0,0) for fractions
2015-09-09 10:47:17 +02:00