jos
51960aafe0
Change the structure of a factory function from an function to an object with meta data
2018-11-05 10:25:32 +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
e3211a7efc
Move all is* functions like isComplex into is.js
2018-10-31 15:28:51 +01:00
jos
d36d54cfc9
Rename hypot.js back to createHypot.js othwerwise we get confusing naming issues
2018-10-31 09:44:06 +01:00
jos
efd4f46f9c
Merge branch 'develop' into modular_architecture
2018-10-31 09:14:00 +01:00
jos
216c1cd480
Publish v5.2.3
2018-10-30 20:21:16 +01:00
jos
5b6863e364
Fixed #1304 : function pow not supporting inputs pow(Unit, BigNumber)
2018-10-30 20:13:15 +01:00
jos
3019b4a526
Merge branch 'develop' into modular_architecture
2018-10-20 18:25:43 +02:00
jos
a68c14b7f1
Rename factory function to hypot again
2018-10-20 18:24:54 +02:00
Eric Mansfield
aadb63ef3b
Bugfix for bignumber divided by unit ( #1270 )
...
* Bugfix for bignumber divided by unit
* Expanded out numeric.js, improved divideScalar.js
* Minor comments
2018-10-05 20:53:49 +02:00
jos
c13466bd0a
Merge branch 'develop' into modular_architecture
2018-09-21 20:11:47 +02: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
5610c72e84
Experiment with different dependency injection (WIP)
2018-07-28 22:21:33 +02:00
jos
e844004cbf
Removed redundant escape characters
2018-06-13 21:15:10 +02:00
jos
4254b7413f
Dropped support for (non-primitive) instances of Number, Boolean, and String from functions clone and typeof
2018-06-13 17:56:18 +02:00
jos
0583771e4e
Cleanup unused variables and imports
2018-06-13 17:25:51 +02:00
jos
f1ce473457
Consistend camel case naming of variables and functions
2018-06-13 16:09: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
881889dec0
Renamed unaryminus to unary
2013-07-08 14:11:42 +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
7df862b7fa
Made function multiply a little smarter in dealing with complex calculations and reducing complex results to a number when possible
2013-06-16 14:05:15 +02:00
josdejong
43cc541762
Fixed #14 : wrong calculation of i/0, also fixed i*Infinity
2013-06-14 21:18:14 +02:00
josdejong
f2b1b2ad9f
Implemented element wise functions edivide, emultiply, and epow
2013-05-31 20:47:45 +02:00
josdejong
0b2e28403b
Fixed in mod for negative numerators. Added more input validation. Added tests
2013-05-29 20:14:51 +02:00
josdejong
f010032683
Updated version to 0.8.2-SNAPSHOT
2013-05-17 18:37:35 +02:00
josdejong
f93dcfbc44
More tests
2013-05-10 21:53:05 +02:00
josdejong
bdaa2c6073
Fixed method unequal, which was checking for equality instead of inequality... ( Fixed #9 )
2013-05-03 21:58:50 +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
8856f06104
Minor tweaks in code and comments
2013-04-18 21:26:24 +02:00
Jos de Jong
c6b2e436d9
Merge pull request #7 from bkiers/xgcd
...
Added function xgcd (extended-gcd) + unit tests.
2013-04-15 00:13:40 -07:00
Bart Kiers
d032fc02c3
Added function xgcd (extended-gcd) + unit tests.
2013-04-14 21:31:09 +02:00
josdejong
4914084e3f
Removed Range from the function comments
2013-04-14 21:16:30 +02:00
josdejong
c9d5cb6062
Merge remote-tracking branch 'origin/develop' into develop
2013-04-14 21:10:15 +02:00
Bart Kiers
df4fc0b82c
Fixed 2 small doc copy-paste errors.
2013-04-14 17:02:21 +02:00
josdejong
2742ab4fd5
Removed all instanceof checks for Range
2013-04-14 14:32:24 +02:00
josdejong
89a4bdd671
Renamed Chain to Selector and chain to select
2013-04-13 00:13:03 +02:00