jos
a2ae756fd1
Remove semicolons
2018-10-31 21:18:51 +01:00
jos
247aeabffa
Refactor all unit tests to ES6 import/export
2018-10-31 21:17:23 +01:00
greenkeeper[bot]
c5971b371a
Update standard to the latest version 🚀 ( #1226 )
...
* chore(package): update standard to version 12.0.0
* update to new lint version with --fix
I believe this mainly adds whitespace to `{}`'s.
* Replace assert.equal with assert.strictEqual
This breaks a lot of tests which I will endevour to fix in the next
commits.
* Fix most errors due to assert.strictEquals
Some instances of `strictEquals` are replaced by `deepEquals`.
`toString` has been used to make some string comparisions explicit.
Tests will still fail untill #1236 and #1237 are fixed.
* Fix assertion erros due to -0
With node 10, assert.strictEqual no longer considers `0 === -0`.
I missed these first time round as I was using node 8.
* Put toString correct side of bracket
I was converting the constructor to a string rather
than the result of the computation. Oops.
* Fixed #1236 : quantileSeq has inconsistant return
* Update package-lock
* Fixed #1237 : norm sometimes returning a complex number instead of number
* Fix cli tests
* More changes for standardjs, and fixes in unit tests
2018-09-08 16:33:58 +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
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
Dakota Blair
c591c07347
Fixed #851 : More consistent behavior of sqrt, nthRoot, and pow
2018-03-21 19:05:08 +00:00
jos
4469f6bd0c
Remove support for implicit conversion of null to 0. See #830 .
2018-01-23 20:26:38 +01: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
c558cf496e
Fixed all broken unit tests
2016-02-14 21:51:37 +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
34348d8483
Merge remote-tracking branch 'origin/v2' into develop
2015-07-21 20:51:39 +02:00
Ganga Christopher
12514a7bc4
calculating root of complex numbers using De Moviers, returns array of n complex roots in polar form
2015-07-21 17:10:49 -07:00
jos
f70dcd5d48
Added one more test
2015-06-17 20:11:03 +02:00
jos
b3c7169493
Fixed #397 : Inaccuracies in nthRoot for very large values, and wrong results for very small values.
2015-06-17 20:06:13 +02:00
rjbaucells
769eebadb7
nthRoot
2015-05-02 19:46:38 -04:00
jos
6e96d5a808
Merge branch 'develop' into v2
...
Conflicts:
HISTORY.md
bower.json
component.json
dist/math.js
dist/math.map
dist/math.min.js
lib/function/arithmetic/abs.js
lib/function/probability/gamma.js
lib/version.js
package.json
2015-04-22 21:43:56 +02:00
Max Bruckner
8ad525b66e
util/latex: get rid of many unnecessary curly braces
2015-04-19 11:08:00 +02:00
jos
349e9845e8
Merge branch 'develop' into v2_merge
...
Conflicts:
HISTORY.md
bower.json
component.json
dist/math.js
dist/math.map
dist/math.min.js
docs/reference/units.md
lib/version.js
package.json
test/function/construction/chain.test.js
test/function/matrix/det.test.js
test/function/matrix/transpose.test.js
test/function/utils/import.test.js
2015-04-13 21:42:43 +02:00
Max Bruckner
240eeecccd
lib/util: Move over from callbacks to templates
2015-04-12 23:44:26 +02:00
Max Bruckner
7adf0ebc53
LaTeX tests for functions
2015-04-05 14:29:10 +02:00
jos
d4a457f5c9
Refactored norm, nthRoot, round, diag, transpose to typed-functions.
2015-03-22 15:34:59 +01:00
jos
bc15efbc68
Fixed #219 : implemented function nthRoot
2014-11-09 14:18:30 +01:00