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
e844004cbf
Removed redundant escape characters
2018-06-13 21:15:10 +02:00
jos
600cfb403a
Fix return statement should not contain assignment
2018-06-13 17:37:27 +02:00
jos
0583771e4e
Cleanup unused variables and imports
2018-06-13 17:25:51 +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
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
4469f6bd0c
Remove support for implicit conversion of null to 0. See #830 .
2018-01-23 20:26:38 +01:00
jos
7df52c1d1a
Fixed #983 : pickRandom returning an array instead of single value when input was an array with just one value. Clarified docs.
2017-12-09 20:42:08 +01:00
morsecodist
9466b214aa
Supported seeds of any type
2017-02-26 22:54:01 -05:00
morsecodist
9bfedf2921
Added and updated unit tests to new config option seeded rng
2017-02-24 15:21:17 -05:00
morsecodist
3d46e21ee5
Removed old seeded random number generator
2017-02-24 15:18:16 -05:00
morsecodist
79010f381f
Updated to use new seedrandom scheme
2017-02-21 16:46:07 -05:00
morsecodist
3b5e6a44d7
Added seedrandom unit tests
2017-02-21 16:35:03 -05:00
jos
1ecfdf1a0e
Implemented BigNumber support in function arg()
2016-11-05 19:52:22 +01:00
Mathias Polligkeit
832f280196
rewrite pickRandom as typed function
2016-07-18 02:17:27 +02:00
Mathias Polligkeit
fe972bacf6
extend pickRandom function to allow multiple picks and weighted distribution, remove pickMultipleRandom
2016-07-16 17:55:38 +02:00
Mathias Polligkeit
f8cde43e0a
rewrite tests for extended pickRandom function
2016-07-16 15:07:49 +02:00
Mathias Polligkeit
1e50dcf523
new tests for pickRandom to cover multiple picks and weighted distributions
2016-07-06 23:19:27 +02:00
Mathias Polligkeit
bd7f6edc24
remove test file for pickMultipleRandom
2016-07-06 23:18:33 +02:00
Mathias Polligkeit
c5e40b40ef
add pickMultipleRandom function
2016-06-30 02:19:09 +02: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
c558cf496e
Fixed all broken unit tests
2016-02-14 21:51:37 +01:00
jos
f45564afcf
Fixed : #493 : function combinations did not throw an exception for non-integer values of k.
2015-10-28 10:11:27 +01:00
Favian Contreras
7bccecb2cf
This resolves #444 . Updated test cases as well.
2015-09-19 03:15:23 -07:00
Sergey Romanov
5360549b1f
Add additional test
2015-08-01 17:26:05 +05:00
Sergey Romanov
a05cb67f8f
check concrete results
2015-08-01 17:22:31 +05:00
Sergey Romanov
e99d7c1a7f
Add test for bignumber
2015-08-01 17:18:35 +05:00
Sergey Romanov
87afd45d7f
kldivergence.test.js instead entropy.js
2015-07-31 02:35:04 +05:00
Sergey Romanov
27fc2f5b5f
remove entropy files
2015-07-31 02:33:14 +05:00
Sergey Romanov
ec3b2e10fe
Add Kullback-Leibler divergence
2015-07-29 03:04:01 +05:00
jos
396d951c95
Halfway implementing lazy loading
2015-07-21 20:49:52 +02:00
jos
2353c4a61e
Renamed folders util to utils
2015-07-18 13:22:38 +02:00
jos
a92b978036
Merged develop into v2
2015-06-07 15:57:41 +02:00
Devan Patel
2fba039dd6
Adding support for Multinomial + test.
2015-05-08 13:20:17 -04:00
jos
18d9b8942e
Dropped support for module names from function import
2015-05-01 23:00:58 +02:00
Max Bruckner
e62ab0dae4
Proper toTex for units and symbols.
...
Symbols now don't use `\mathrm` anymore by default, but units do.
2015-04-27 11:08:31 +02: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
1d5a972a58
Refactored combinations, factorial, gamma, permutations, pickRandom, random, randomInt to typed-functions
2015-04-15 21:30:32 +02:00
Max Bruckner
6b1d09f2cb
util/latex: new toSymbol
2015-04-05 14:29:12 +02:00
Max Bruckner
7adf0ebc53
LaTeX tests for functions
2015-04-05 14:29:10 +02:00
Rogelio J. Baucells
2077c39885
Matrix inheritance implementation
2015-03-10 15:28:19 -04:00
Rogelio J. Baucells
b4463d9ef3
Initial require() changes
2015-03-04 13:53:32 -05:00
Favian Contreras
05c6dcaae5
Guard digits now a function of n. Updated Infinity! to be accurate (Infinity! == sqrt(tau)). Updated and cleaned up test cases.
2015-01-14 18:15:03 -08:00
Favian Contreras
a85df3fcea
Fixed precision variable problem (config.precision instead of math.precision), and round-off errors. Updated test cases.
2015-01-13 04:41:53 -08:00