51 Commits

Author SHA1 Message Date
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
josdejong
dcb69a18de Completed end user documentation 2013-07-08 13:47:01 +02:00
josdejong
4f7eda523c Changed all json docs into js files 2013-07-08 12:53:52 +02:00
josdejong
383835b9ae Moved documentation on functions into directory docs/functions 2013-07-08 11:42:48 +02:00
josdejong
a8879df0a8 Added the docs again to the library (yes yes that makes it bigger. We wil enable custom, stripped builds later on) 2013-07-04 13:40:09 +02:00
josdejong
0b2e28403b Fixed in mod for negative numerators. Added more input validation. Added tests 2013-05-29 20:14:51 +02:00
josdejong
33bbd402b2 Implemented context variable end for subsets of strings 2013-05-27 21:48:48 +02:00
josdejong
9d225d1979 Added an example file extend.js, updated readme 2013-05-27 21:12:55 +02:00
josdejong
23ffed0994 Implemented function subset, including support for string and scalar 2013-05-26 15:43:21 +02:00
josdejong
1f6bcc8542 Implemented function math.parse(expr [,scope]), extended function math.expr(expr [,scope]). 2013-05-21 21:01:34 +02:00
josdejong
0090fdd925 Extended import function 2013-05-18 20:11:03 +02:00