50 Commits

Author SHA1 Message Date
jos
50e258209b Implemented lazy loading constants when using BigNumbers 2015-01-12 22:34:12 +01:00
jos
4d23e08aab Little bit more robust memoize function 2015-01-07 09:47:52 +01:00
jos
60f2370891 Generalized memoize function for multiple arguments 2015-01-06 22:28:20 +01:00
jos
5b1eedef59 Implemented a simple memoize function 2015-01-06 21:47:28 +01:00
jos
fd586fcbf1 Moved bignumber functions e, pi, tau, phi to util/bignumber.js (see #226) 2014-12-13 14:14:33 +01:00
jos
374759a84e types.type now also recognizes a function 2014-10-19 20:37:27 +02:00
jos
7f6b13a797 Changed the default value of new entries in resized matrices to zero. 2014-08-12 22:35:56 +02:00
jos
16d2e41f59 Improved function unsqueeze 2014-08-03 18:04:57 +02:00
jos
e5ce909524 Reworked the way matrices are resized when dimensions are added/removed 2014-08-03 15:56:39 +02:00
jos
b2a103a505 Functions equal and unequal support null and undefined now (see #190) 2014-06-17 22:01:15 +02:00
jos
0bc0dc8b5d Function typeof now recognizes regular expressions as well. 2014-06-17 20:52:37 +02:00
jos
082265a184 Changed the default number of significant digits for BigNumbers from 20 to 64. 2014-06-11 21:56:58 +02:00
jos
3e62516909 Documented new option epsilon for comparison. Changed default value to 1e-14 2014-04-16 09:28:03 +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
d0fb727c43 Implemented DimensionError and IndexError 2014-04-06 20:53:23 +02:00
josdejong
a7b24eca8c Implemented BigNumber support for function diag 2014-04-06 12:57:55 +02:00
josdejong
45550e5ffb Changed configuration option decimals to precision 2014-04-06 11:14:01 +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
763abb425e Implemented function compare 2014-03-29 21:43:22 +01:00
josdejong
24b1e1c854 More unit tests added 2014-03-23 21:36:36 +01:00
josdejong
5dc010c889 Some more unit tests 2014-03-15 22:11:44 +01:00
josdejong
f1ea498927 Added some more unit tests 2014-03-15 15:27:05 +01:00
josdejong
f48beee1f9 Added some more unit tests 2014-02-25 22:37:53 +01:00
josdejong
91dae90e1e Fixed #108: math.js not working in Java's ScriptEngine 2013-12-10 21:34:37 +01:00
josdejong
1d54a99bce More neat formatting of functions 2013-12-09 21:21:34 +01:00
josdejong
33a2f03ff4 Fixed unreliable string tests 2013-12-06 10:48:36 +01:00
josdejong
65a8f9e8ea Fixed broken tests 2013-12-06 10:42:46 +01:00
josdejong
356a8cfc5d More tests 2013-12-06 10:31:35 +01:00
josdejong
0210ec0d41 UnsupportedTypeError can now determine the type of values 2013-11-28 17:15:28 +01:00
josdejong
f5ea5938a9 Renamed scientific notation to exponential in function format 2013-11-28 16:28:04 +01:00
josdejong
0ae1879884 Fixed function format for precision > 20 (see #100) 2013-11-28 13:38:08 +01:00
josdejong
279809fd79 Ranges and indexes can now handle big numbers by downgrading to numbers 2013-11-27 14:16:46 +01:00
josdejong
8b565b23c4 Fixed auto notation in function format for bignumbers, the function now reckons with specified upper and lower bounds. 2013-11-27 11:07:40 +01:00
josdejong
26c0332883 On mixed Number/BigNumber inputs, all operators now downgrade the inputs if Number is a fraction. 2013-11-23 10:28:42 +01:00
josdejong
21e4f7f160 Neatly splitted calculations with Numbers and Booleans 2013-11-19 21:34:20 +01:00
josdejong
3f11056330 Implemented BigNumber support for math.format. 2013-11-16 19:27:18 +01:00
josdejong
0a0596bd7e Simplified and reworked the Matrix class. Implemented functions Matrix.get and Matrix.set 2013-11-09 21:36:03 +01:00
josdejong
5f1aee3550 Some fixes and improvements in the resize function 2013-11-07 22:42:21 +01:00
josdejong
04c41fb42e Implemented advanced options in format to customize precision, scientific/fixed/auto notation (see #100). 2013-10-24 15:12:04 +02:00
josdejong
1db989a2d7 Changed scientific notation of number formatting back 2013-10-21 20:51:48 +02:00
josdejong
17f208df18 Some nice improvements to formatting numbers 2013-10-21 12:07:07 +02:00
josdejong
432d3e0574 Fixed a bug in formatting numbers with a limited precision. Added more unit tests. 2013-10-21 11:18:59 +02:00
josdejong
c8a289a08c Removed unnecessary .js suffix in module require statements 2013-10-20 14:01:31 +02:00
josdejong
9cb354a6da Index functionality getting in place now. 2013-08-18 14:37:03 +02:00
Sebastien Piquemal
aa0249d458 fixed npm install, changed src to lib 2013-08-14 15:00:12 +04:00
josdejong
20e4456747 Fixed #26: functions ones and zeros now adhere to geometric dimensions. 2013-08-11 13:33:11 +02:00
josdejong
0b45b89dd0 Fixed #56: not allowing matrices with empty dimensions like [[],[]] 2013-08-10 22:06:20 +02:00