259 Commits

Author SHA1 Message Date
jos
b0ec2d4739 Fixed undefined variables/globals 2018-06-13 18:09:19 +02:00
jos
0583771e4e Cleanup unused variables and imports 2018-06-13 17:25:51 +02:00
jos
0513898a4b Fix using new for side effects 2018-06-13 16:31:18 +02:00
jos
1f0a37a0cb Split initialized 'const' declarations into multiple statements 2018-06-13 15:31:37 +02:00
jos
17f07ec098 Fixed incompatibility with v4 (index.js file) 2018-06-13 14:02:50 +02:00
jos
b3b96749bf Refactored var into const/let, and removed a lot of semicolons 2018-06-13 12:21:14 +02:00
jos
934ea83df7 Fixed linting issues "Expected consistent spacing" 2018-06-12 21:38:11 +02:00
jos
024b2a9e26 Fix most lint errors using npx standard --fix 2018-06-10 20:28:27 +02:00
jos
635cd0b574 Revert using /lib/ in tests, use /src/ again. Fixed coverage testing. WIP 2018-06-06 22:11:52 +02:00
jos
79071b5e4f Fixed npm run test:browser not working (WIP) 2018-06-06 21:30:41 +02:00
jos
0c084b8e20 npm test working now 2018-06-06 15:36:36 +02:00
jos
f87ec1c6db Setup Babel compilation (WIP) 2018-06-06 14:31:33 +02:00
jos
36f89a3598 Merge branch 'develop' into browser_testing
# Conflicts:
#	test/function/arithmetic/pow.test.js
2018-06-06 10:54:31 +02:00
jos
cf5c1c1af8 Fixes #1054: renamed eye to identity 2018-06-06 10:52:08 +02:00
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
8b5586914a More unit test tweaks to make everything work on IE 11 and Edge (part III) 2018-06-06 09:39:04 +02:00
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
jos
7c4920a9a3 Merge branch 'develop' into v5 2018-05-05 21:20:50 +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
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
Dakota Blair
c2917dca52 Fixed offset bug. 2018-03-21 19:46:31 +00:00
Dakota Blair
cbcf27282e Updated behavior of nthRoots 2018-03-21 19:05:09 +00:00
Dakota Blair
c591c07347 Fixed #851: More consistent behavior of sqrt, nthRoot, and pow 2018-03-21 19:05:08 +00: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