97 Commits

Author SHA1 Message Date
jos
5fd0a5e70b Fixed: removed memoization from gamma and factorial functions, this could blow up memory. 2015-10-29 19:22:28 +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
jos
b7206b1c7f Added some more missing docs 2015-08-11 21:07:38 +02:00
Sergey Romanov
8a78b9c847 isNumeric instead number.isNumber 2015-07-31 03:53:12 +05:00
Sergey Romanov
e4311c000a kldivergence.js instead entropy.js 2015-07-31 02:34:38 +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
8158dafd3d Moved the trigonometric functions in util/bignumber.js into separate files 2015-07-18 20:37:32 +02:00
jos
14b41b202e Reworked the BigNumber constants (pi, tau, e, phi) to be created by passing a BigNumber constuctor instead of a precision 2015-07-18 17:20:22 +02:00
jos
2353c4a61e Renamed folders util to utils 2015-07-18 13:22:38 +02:00
jos
57a47b3b5a Moved pure collection functions to lib/util/collection 2015-07-18 12:53:07 +02:00
jos
493f34ec7b Split collection.js into separate (pure) functions 2015-07-18 11:47:38 +02:00
jos
2d42218c7f Removed isPositiveInteger from util/bignumber.js. Added some unit tests 2015-07-18 11:07:41 +02:00
Max Bruckner
21bd67980a Remove LaTeX of probability functions from util/latex.js 2015-06-14 02:23:41 +02:00
jos
b7b4669935 Conversions after merging develop into v2 2015-06-07 15:57:58 +02:00
jos
a92b978036 Merged develop into v2 2015-06-07 15:57:41 +02:00
jos
2d84debd6c Added/updated missing docs 2015-05-31 14:29:42 +02:00
jos
82ed4ca497 Fixed #381: issue in docs of randomInt (see also #382) 2015-05-31 14:01:59 +02:00
jos
5762132822 Removed premature stuff on Permutation (see#362), and removed dependency on underscore. 2015-05-27 13:52:14 +02:00
Devan Patel
57619c51ef Fixing mutlinomial for isPositiveInteger 2015-05-25 14:24:21 -04:00
jos
6c7bf4acf0 Removed boolean, string, and null from the list with argument types, only leaving the directly supported types (which types can be converted to supported types is determined externally). Consistently renamed primitive types lower case (boolean, string, number, null) and non-primitive types uppercase (Complex, BigNumber, Function, Array, ...). 2015-05-20 21:08:26 +02:00
jos
166d3aa0be Removed boolean, string, and null from the list with argument types, only leaving the directly supported types (which types can be converted to supported types is determined externally). 2015-05-20 20:49:19 +02:00
Devan Patel
2fba039dd6 Adding support for Multinomial + test. 2015-05-08 13:20:17 -04:00
jos
8c032f2593 Replaced all instanceof checks with x && xisMyType === true checks 2015-05-05 15:09:21 +02:00
jos
758107428c Moved collection.js and Matrix.js under ./lib/type/matrix, moved construction functions matrix.js and sparse.js to ./lib/type/matrix/function, and created an index file. 2015-05-05 12:00:07 +02:00
jos
7a37c777e4 Created index.js files for most groups of functions so you can import a all functions with a single action 2015-04-26 20:28:47 +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
jos
1d5a972a58 Refactored combinations, factorial, gamma, permutations, pickRandom, random, randomInt to typed-functions 2015-04-15 21:30:32 +02:00
Nick Foti
020a47c938 Corrected gamma documentation to allow argument to be real or complex. 2015-04-14 14:40:43 -07: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
0a421eb512 Now guard digits scale with 'n'. 2015-01-13 07:03:45 -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
Favian Contreras
188c3afdfd Fixed carry-over precision bug in factorial. Updated test cases to account for this potential error. 2015-01-12 13:06:22 -08:00
Favian Contreras
35ddaf0f9b Migrated for Numbers to . 2014-12-25 02:26:52 -05:00
Favian Contreras
6deccdf837 Enabled factorial for non-integer numbers. Updated test cases to reflect this. 2014-12-24 02:53:00 -05:00
Favian Contreras
05d8f5b5f6 Failed at adding gamma to the parser (attempted to add 1 to all the values while using gamma, then tried to wierdly overload ! token). I added BigNumber integer support for gamma to allow more flexibility when integrating it into the parser (if that is something that is done). 2014-12-17 16:07:26 -08:00
Favian Contreras
19e6ce057a Removed BigNumber bad implementation. Also, cleaned up the code, switched the coefficients for Lanczos, and added extended Stirling approx. 2014-12-17 06:34:23 -08:00
Favian Contreras
33d76576d5 Updated use of bigPi, and adjusted the test cases as well. 2014-12-13 10:38:09 -08:00
Favian Contreras
a9ee1980e1 Use the new cosh or sinh for complex numbers. 2014-12-12 23:10:27 -08:00
Favian Contreras
ea83be53c4 The tests now work, but still have use Math.PI. 2014-12-11 10:51:34 -08:00
Favian Contreras
5bc3e0d8c2 Faster factorial, and gamma implemented with tests. 2014-12-11 07:20:13 -08:00
jos
8513ccca49 More clear explanation of included/excluded boundaries in random and randomInt docs (See #222) 2014-10-14 09:21:21 +02:00
jos
378e99e9e4 Fixed #222: typo in the docs of random and randomInt 2014-10-14 09:09:25 +02:00
jos
41db497289 Removed references in documentation to the "distribution" function 2014-09-08 11:30:48 +02:00
jos
29cc34f1a8 Removed math.distribution for now, needs some rethinking 2014-08-28 21:46:56 +02:00
jos
da306e26ed Implemented support for null in all functions (see #205) 2014-08-09 16:27:11 +02:00
jos
8c224d3e71 Moved transformation of error messages (zero-based to one-based) to the expression/transform section 2014-07-20 20:45:10 +02:00