61 Commits

Author SHA1 Message Date
jos
5cab0641e9 Simplified the factory structure a little bit. Reworked reviver and BigNumber to factories 2015-03-26 21:03:55 +01:00
jos
b028c7e7cf Refactored clone, filter, forEach, format, map, print, sort, typeof to typed-function. 2015-03-22 21:07:57 +01:00
jos
de0f937950 Created a loader and reworked the functions to a new type of factory function 2015-03-18 22:42:54 +01:00
jos
4bd7dc5633 Implemented toJSON and fromJSON and a reviver for most data types 2015-02-18 20:34:43 +01:00
jos
86bcd55352 Changed the way transforms are registered internally, making Node.compile faster, and enabling lazy-loading constants 2015-01-13 10:48:52 +01:00
jos
8b253f050b Renamed function select to chain 2014-12-25 17:05:29 +01:00
jos
7132a6f3c2 Fixed #221 for one-based implementations of map and forEach 2014-10-14 09:03:04 +02:00
jos
02d4d1d819 Fixed #221: Parameter index in the callbacks of map and forEach are now cloned for every callback 2014-10-13 21:53:55 +02:00
jos
f1313d8be7 Implemented a function filter(x, test) 2014-09-04 20:52:51 +02:00
jos
8f9995cd37 Changed default value of the option wrap of function math.import to false, and fixed a but in math.import 2014-08-16 17:56:13 +02:00
jos
41663147e6 Implemented function sort 2014-08-14 22:24:15 +02:00
jos
94262f6f89 Functions map and forEach invoke the callback with one-based indices when used from within the expression parser 2014-08-03 21:05:36 +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
7836bcb06a Fixed a typo in the comments of format 2014-07-01 14:53:20 +02:00
jos
4645529f40 Removed function ifElse 2014-06-30 14:52:54 +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
a7151aab1a Whoops removed accidentally pasted code 2014-06-17 21:20:47 +02:00
jos
2a5483dda6 Extended the documentation of function typeof 2014-06-17 21:10:50 +02:00
jos
aa80ae8fc8 Fixed #190: imported, wrapped functions not accepting null and undefined as function arguments. 2014-06-11 20:21:41 +02:00
jos
45982fbba0 Removed array/matrix support from function ifElse 2014-06-08 21:22:57 +02:00
jos
31aa5655b1 Added a section "Where:" to some of the reference docs 2014-05-22 22:15:40 +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
d0fb727c43 Implemented DimensionError and IndexError 2014-04-06 20:53:23 +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
f568ae75c1 More unit tests added 2014-04-03 20:58:43 +02:00
josdejong
b3ab923a69 Implemented conditional operator a ? b : c in expression parser 2014-04-01 20:49:55 +02:00
josdejong
c74afb7dcb Improved function ifElse 2014-03-31 21:24:46 +02:00
josdejong
baa2fb43c6 Ignoring an else case for coverage of unit tests 2014-03-15 23:11:06 +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
Jos de Jong
99f5de862d Merge pull request #144 from mtraynham/if_else_function
Adds the ifElse function.
2014-03-13 09:27:25 +01:00
Matt Traynham
7d26235842 Adds support for IfElse ternary operation functions. These can be used in the compiler as well. Much easier than adding basic parse support for ternary operands '?' & ':'. 2014-03-11 20:07:02 -04:00
josdejong
f48beee1f9 Added some more unit tests 2014-02-25 22:37:53 +01:00
josdejong
d22168ea88 Added script for coverage report 2013-12-14 13:20:27 +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
80b8b34042 Implemented function config 2013-11-21 13:13:26 +01:00
josdejong
3f11056330 Implemented BigNumber support for math.format. 2013-11-16 19:27:18 +01:00
josdejong
52337e4b94 Integrating the bignumber.js library in math.js. This is awesome! 2013-11-16 14:34:35 +01:00
josdejong
9485cb2459 Simplified/improved typeof function 2013-10-31 11:52:03 +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
c8a289a08c Removed unnecessary .js suffix in module require statements 2013-10-20 14:01:31 +02:00
josdejong
f42f5698cb Removed global option options.format.precision. When formatted, numbers are no longer rounded to 5 digits by default. 2013-10-20 13:40:28 +02:00
josdejong
e61d2f965b Fixes in the new function math.format(precision). Updated docs and tests. 2013-10-19 21:44:54 +02:00
josdejong
524a915beb Updated comments 2013-10-19 18:12:20 +02:00
josdejong
a4bda611df Implemented function print (splitted from function format) 2013-10-19 18:10:50 +02:00