28 Commits

Author SHA1 Message Date
jos
94e9668b4a Refactor functions into ES6 import/export 2018-10-31 20:53:01 +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
b3b96749bf Refactored var into const/let, and removed a lot of semicolons 2018-06-13 12:21:14 +02:00
jos
c2777c856b Fixed linting issues "Unexpected template string expression" 2018-06-12 21:18:45 +02:00
jos
024b2a9e26 Fix most lint errors using npx standard --fix 2018-06-10 20:28:27 +02:00
jos
35329d7db4 Move lib to src 2018-06-06 14:37:39 +02:00
Sebastien Piquemal
aa0249d458 fixed npm install, changed src to lib 2013-08-14 15:00:12 +04:00
josdejong
4b20d7cb88 Directly export prototypes as module.exports 2013-08-07 14:22:44 +02:00
josdejong
283e76e4e9 Packed all functions in a closure (makes them environment independent) 2013-08-07 14:12:07 +02:00
josdejong
fe06d514e0 Created shared module math.js for all functions (resolves circular references) 2013-08-06 21:50:15 +02:00
josdejong
8cc9ceb980 Changed all source files into node.js modules 2013-08-05 23:05:23 +02:00
josdejong
6a6b5c3e61 Replaced all x instanceof Array with Array.isArray(x) 2013-08-04 14:30:38 +02:00
josdejong
19b507b9f0 Refactored all code to 2 space indentation 2013-08-04 14:07:47 +02:00
josdejong
76b154e285 Complex computations will return a (real) Number instead of Complex(x,0) when possible. 2013-06-16 14:46:42 +02:00
josdejong
43cc541762 Fixed #14: wrong calculation of i/0, also fixed i*Infinity 2013-06-14 21:18:14 +02:00
josdejong
7d5982035b Updated documentation of all methods. Changed cube and square to evaluate matrices element wise. 2013-04-20 14:04:34 +02:00
josdejong
4914084e3f Removed Range from the function comments 2013-04-14 21:16:30 +02:00
josdejong
50276ee814 Removed the build-in parser documentation from the core library. 2013-04-11 19:52:18 +02:00
josdejong
fbdac7cfed Implemented matrix support for methods max and min 2013-04-05 21:18:42 +02:00
josdejong
c695fdd7a4 Implemented division with matrices (should be improved upon later...) 2013-04-05 20:04:05 +02:00
josdejong
04f51c5beb Implemented Matrix support for all methods 2013-04-01 15:30:25 +02:00
josdejong
cf8cf46d63 Renamed methods 'copy' to 'clone' 2013-03-19 20:34:21 +01:00
josdejong
0c41367b6f Implemented fallback to primitive value of objects for all methods 2013-03-19 20:25:06 +01:00
josdejong
8a6548027f Implemented array support for all methods 2013-03-13 21:45:05 +01:00
josdejong
3b9c24fe72 Documentation updated 2013-02-24 14:21:05 +01:00
josdejong
c896eae319 Parser implemented 2013-02-23 23:45:51 +01:00
josdejong
61b2a45a9a Added check for correct argument count to all functions 2013-02-23 14:13:17 +01:00
josdejong
55e37b3fc3 Added methods add, divide, larger, multiply, pow, smaller, subtract, unaryminus, max, min. Library is now fully compatible with the standard Math library. 2013-02-18 20:49:01 +01:00