Jos de Jong
553531b57c
Merge pull request #1093 from harrysarson/sep-tests
...
Separate tests that depend on node
2018-05-10 19:40:12 +02:00
jos
0abdfbe590
Upgraded dependencies for complex.js and fraction.js (see #1100 )
2018-05-07 21:16:07 +02: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
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
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
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
Favian Contreras
d8ec9c3638
More functions from ECMA 6 draft (expm1, log2, and log1p).
2018-03-08 17:10:59 +00:00
jos
bf3f62b564
Upgraded to typed-function@1.0.0
2018-02-20 20:59:05 +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
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
Timothy Lee
6f2b5efaac
Disallow implicitly converting a number to a fraction that is not an exact representation
2017-05-08 15:58:06 +09:30
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
41f4cd6078
Fixed #789 : Math.js not supporting conversion of string to BigNumber, Fraction, or Complex number
2017-02-03 17:52:38 +01:00
jos
a168041374
Functions add and multiply now accept more than two arguments. See #739 .
2016-11-18 15:06:37 +01:00
Eric
feb834b040
Units no longer search for the best prefix if the current prefix results in a value approximately between 0.1 and 1000.
...
Adjusted unit tests.
2016-11-06 06:59:12 -07:00
jos
c9591339b1
Throw an error for implicit conversion between BigNumber and Fraction (see #710 )
2016-11-05 19:44:04 +01:00
Eric
d2494408ef
Unitless units are now converted to numeric values when predictable:false
2016-04-19 15:52:25 -06: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
f4b794100e
Replaced tabs with spaces
2016-03-03 20:29:08 +01:00
jos
4ea2542941
Extended math.fraction with support for BigNumber, extended math.bignumber with support for Fraction
2016-03-03 19:24:24 +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
c558cf496e
Fixed all broken unit tests
2016-02-14 21:51:37 +01:00
jos
e0bba8ff88
Merge branch 'develop' into complex
...
Conflicts:
lib/core/import.js
2016-02-13 13:52:48 +01:00
Jos de Jong
90c0d7c274
Merge pull request #525 from ericman314/realmode-exponentiation
...
Realmode exponentiation
2016-02-13 13:35:52 +01:00
Eric
d6769b8cd5
Removed 'realmode' config option and replaced with 'predictable'
2016-02-13 04:21:11 +00:00
Robert Eisele
e6d4e40d7c
Changed some tests to match new requirements
2016-02-07 14:57:02 +01:00
jos
86a3af26f3
Merge branch 'develop' into feature/objectsupport
...
Conflicts:
HISTORY.md
2016-02-03 21:17:51 +01:00
jos
ddf212eda3
Added support for doing operations with mixed Fractions and BigNumbers
2016-01-25 21:09:41 +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
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
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
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
Robert Eisele
93c4dd91d1
Added more test cases for fraction.lcm
2015-09-08 09:54:34 +02:00
Robert Eisele
0a8dbd352e
Added lcm fraction tests
2015-09-07 12:36:43 +02:00
Eric
2968f2b4ff
Almost done with unit prefix powers
2015-08-23 21:00:52 +00:00