80 Commits

Author SHA1 Message Date
jos
8a68bb56e4 Merged math.js v1.5 into v2. Format support of functions eye and diag still needs to be fixed 2015-03-31 22:07:47 +02:00
jos
466c6a03e8 Added support for booleans and null in function import 2015-03-26 21:46:57 +01:00
jos
955eac3505 Function import now returns the imported objects 2015-03-26 21:42:31 +01:00
jos
aa78c292b4 Moved function config into a separate file, moved loading datatypes from loader.js to index.js 2015-03-26 21:20:14 +01:00
jos
b028c7e7cf Refactored clone, filter, forEach, format, map, print, sort, typeof to typed-function. 2015-03-22 21:07:57 +01: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
jos
9193965922 Some more unit tests 2015-02-17 21:18:25 +01:00
jos
3c7c3a2193 Upgraded to decimal.js v4.0.1 2014-12-25 17:47:45 +01:00
jos
8b253f050b Renamed function select to chain 2014-12-25 17:05:29 +01: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
da306e26ed Implemented support for null in all functions (see #205) 2014-08-09 16:27:11 +02:00
jos
8a12c8e9bc Fixed #200: A new instanceof of math.js must now be created as math.create([options]) instead of math([options]) 2014-08-03 21:42:12 +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
082265a184 Changed the default number of significant digits for BigNumbers from 20 to 64. 2014-06-11 21:56:58 +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
josdejong
97cbb0093f Moved errors to their own namespace and folder 2014-04-11 18:02:29 +02:00
josdejong
492d7f4c4f Moved ArgumentsError from lib/type/ to lib/util/ 2014-04-06 21:25:46 +02:00
josdejong
45550e5ffb Changed configuration option decimals to precision 2014-04-06 11:14:01 +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
721f21574e Some more unit tests 2014-04-03 22:23:35 +02:00
josdejong
c74afb7dcb Improved function ifElse 2014-03-31 21:24:46 +02:00
josdejong
24b1e1c854 More unit tests added 2014-03-23 21:36:36 +01:00
josdejong
f1ea498927 Added some more unit tests 2014-03-15 15:27:05 +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
279809fd79 Ranges and indexes can now handle big numbers by downgrading to numbers 2013-11-27 14:16:46 +01:00
josdejong
b3812362fd Implemented bignumber downgrading for all not-supported functions 2013-11-23 14:14:44 +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
569f9ec113 Fixed indentation 2013-10-31 20:21:05 +01:00
josdejong
9485cb2459 Simplified/improved typeof function 2013-10-31 11:52:03 +01:00
josdejong
d2e55a0132 Math.js must be instantiated now, static calls are no longer supported 2013-10-26 15:00:06 +02: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
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
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
a4bda611df Implemented function print (splitted from function format) 2013-10-19 18:10:50 +02:00
josdejong
f752c28081 Removed functions get and set of Selector, they are a duplicate of subset 2013-08-31 20:36:46 +02:00
josdejong
f3d80044e2 Neatly separated unit tests for parse, eval, parser from each other 2013-08-31 13:45:57 +02:00
josdejong
6273ad998f Removed usage of math.eval from function unit tests 2013-08-31 10:53:14 +02:00
josdejong
eadb884af9 Moved around code and namespaces in order to separate expression parser related code. 2013-08-31 09:37:14 +02:00
Sebastien Piquemal
c10e87c1f6 math.map should return a matrix when input is a matrix 2013-08-30 13:23:31 +04:00
Sebastien Piquemal
53da1468dc added math.forEach + tests 2013-08-30 13:16:59 +04:00
Sebastien Piquemal
bf005f41a2 added tests for map and forEach 2013-08-30 13:05:04 +04:00