jos
19275e5eaa
Moved all toTex properties to latex util file
2018-11-21 18:08:21 +01:00
jos
7a48d972ce
Refactored all statistics functions. Renamed var to variance
2018-11-09 12:33:13 +01:00
jos
2d7a407ee2
Create mainAll.js. Change algorithm functions to be internal factory functions (not injected). Convert more functions and data types.
2018-11-07 16:43:06 +01:00
jos
f6b524a966
Use object destructuring in factory function callback. Rename typeof to typeOf. Only pass dependencies in scope to factory function.
2018-11-06 09:17:21 +01:00
jos
94e9668b4a
Refactor functions into ES6 import/export
2018-10-31 20:53:01 +01:00
jos
9800f25b35
Reorganized utils functions and refactored to ES6 import/export
2018-10-31 19:58:33 +01:00
jos
7bc1dd3c8c
Move isBigNumber, isMatrix, and isCollection into is.js
2018-10-31 18:56:41 +01:00
jos
e3211a7efc
Move all is* functions like isComplex into is.js
2018-10-31 15:28:51 +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
56a52f6dfd
Fix unit tests broken on Nodejs 6 and 8 (no proper NaN assertions)
2018-08-21 21:27:11 +02:00
jos
b6ab40cf88
Fixed #1214 : median and other functions not neatly handling NaN
2018-08-21 21:16:15 +02:00
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
b6b36bfd9b
Use strict equality checks everywhere (=== and !==)
2018-06-13 15:02:21 +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
504b1fa9a1
Functions size and squeeze now return a Matrix instead of an Array as output on Matrix input
2013-07-03 14:47:40 +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
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
04f51c5beb
Implemented Matrix support for all methods
2013-04-01 15:30:25 +02:00
josdejong
0c41367b6f
Implemented fallback to primitive value of objects for all methods
2013-03-19 20:25:06 +01:00
josdejong
91e520dfb4
Implemented Array support for methods with one parameter
2013-03-09 20:55:03 +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