61 Commits

Author SHA1 Message Date
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
Sebastien Piquemal
fe2c2b59d2 added math.map function see #68 2013-08-28 18:34:15 +04:00
josdejong
40355a0dc2 Fixed outdated readme and fixed broken unit test 2013-08-22 21:35:54 +02:00
josdejong
5a007ef57d Docs, examples, readme updated 2013-08-22 20:59:36 +02:00
josdejong
7f58398053 Completed missing descriptions in tests 2013-08-19 21:07:45 +02:00
josdejong
3341cd387a Fixed failing unit tests 2013-08-19 12:54:36 +02:00
Sebastien Piquemal
a77a94b0d0 refactored test/function/unit and test/function/utils to mocha 2013-08-17 16:45:52 +04:00
Sebastien Piquemal
a6b4ad7526 fixed tests 2013-08-14 15:43:32 +04:00
Sebastien Piquemal
aa0249d458 fixed npm install, changed src to lib 2013-08-14 15:00:12 +04:00
josdejong
3f79c70473 Improved module structure, removed references to a global namespace 2013-08-11 20:42:32 +02:00
josdejong
10633d7237 Minor improvements in the static functions of prototypes 2013-08-07 14:42:02 +02:00
josdejong
8cc9ceb980 Changed all source files into node.js modules 2013-08-05 23:05:23 +02:00
josdejong
d9f34677b4 Renamed all test files to *.test.js 2013-08-04 14:46:22 +02:00
josdejong
c5edb419d8 Moved the library builds math.js and math.min.js to subfolder dist 2013-08-04 14:39:42 +02:00
josdejong
19b507b9f0 Refactored all code to 2 space indentation 2013-08-04 14:07:47 +02:00
josdejong
0fef35409b Fixed #44: allow multiple unary minus operators after each other 2013-08-03 13:04:54 +02:00
josdejong
ae55adce2c Fixed #36: zeros are formatted as null 2013-07-29 09:29:27 +02:00
josdejong
e9b9f0c4e3 Changed matrix indexes from one-based to zero-based (Fixed #23) 2013-07-21 22:11:11 +02:00
josdejong
bff08984da Fixed selector not accepting 0 as value (Fixed #24). 2013-07-21 13:28:19 +02:00
josdejong
e656ec0fb4 Released version 0.10.0 2013-07-08 14:31:02 +02:00