67 Commits

Author SHA1 Message Date
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
jos
40986a1325 Using strict mode now in all files (added 'use strict'; on top of every file) 2014-07-18 23:19:14 +02:00
jos
7d84e4daf0 Math.js now immediately returns a default instance of mathjs, no need to create an instance every time you want to use the library. 2014-06-20 23:11:14 +02:00
jos
ced18ecfca Implemented functions dotEqual and dotUnequal, renamed functions smallereq to smallerEq and largereq to largerEq (all functions are now camelcase) 2014-06-09 14:07:21 +02:00
jos
1691c701dd A few more unit tests added 2014-06-09 11:19:33 +02:00
jos
490494d8ef Fixed #65: Fixed random functions not accepting Matrix as input, and always returning a Matrix as output 2014-06-08 23:05:38 +02:00
jos
fc6a1c52c3 Fixed random functions returning a Matrix on Array input 2014-06-08 22:55:40 +02:00
jos
64aa6375f5 Moved functions random, randomInt and pickRandom to a separate file 2014-06-08 22:36:23 +02:00
jos
9ebc24662f More reference docs added 2014-05-22 21:17:53 +02:00
jos
830367a494 More docs added 2014-05-18 22:21:00 +02:00
jos
6c8104f938 More docs added 2014-05-15 21:43:08 +02:00
josdejong
97cbb0093f Moved errors to their own namespace and folder 2014-04-11 18:02:29 +02:00
josdejong
922ce679e6 Moved UnsupportedTypeError to the others, and made it independent of the math namespace 2014-04-11 17:44:55 +02:00
josdejong
492d7f4c4f Moved ArgumentsError from lib/type/ to lib/util/ 2014-04-06 21:25:46 +02:00
josdejong
8cea27406b Some internal refactoring 2014-04-06 11:22:13 +02:00
josdejong
ad554ef1f7 Updates and fixes to work with a different BigNumber instance per math.js instance 2014-04-05 22:42:03 +02:00
josdejong
d19e7ea570 Switched to module decimal.js for BigNumber support, instead of bignumber.js. 2014-04-04 21:08:33 +02:00
josdejong
b520a198ac Fixed #134: error in function combinations for large numbers 2014-01-31 23:23:57 +01:00
josdejong
8ce1a122bb Some minor code rearrangement 2014-01-07 14:25:32 +01:00
Daniel Levin
a6878572b9 added n <= k condition to permutations, combinations 2014-01-07 13:32:26 +02:00
Daniel Levin
f6fa5bf575 Added BigNumber support to combinations (and tests) 2014-01-07 13:27:56 +02:00
Daniel Levin
17acaaf9eb added BigNumber support to permutations (with tests) 2014-01-07 13:19:58 +02:00
Daniel Levin
365490cf11 Changed parseInt to Math.floor
also added vim swap files to .gitignore
2014-01-07 12:58:09 +02:00
Daniel Levin
fc1ac7efa4 changed x to n in permutations 2014-01-06 12:02:00 +02:00
Daniel Levin
4d72b3b0d5 added n <= k condition to combinations function
and also changed x to n in combinations
2014-01-06 12:00:47 +02:00
josdejong
965f4232ad Added docs on combinations / permutations 2014-01-06 10:43:31 +01:00
Daniel Levin
6c88d7b58a added more tests for combinations. Fixes #99 2014-01-05 14:16:14 +02:00
Daniel Levin
45b619cf84 added combinations function 2014-01-05 13:44:45 +02:00
Daniel Levin
b2acc29d04 added more tests 2014-01-04 18:01:21 +02:00
Daniel Levin
987111aefd removed useless imports 2014-01-04 17:51:08 +02:00
Daniel Levin
a1b8588bdd added tests for permutations function 2014-01-04 17:41:41 +02:00