65 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
Rogelio J. Baucells
2077c39885 Matrix inheritance implementation 2015-03-10 15:28:19 -04:00
Jos de Jong
81e56601d2 Merge branch 'develop' into v2 2015-03-09 20:19:12 +00:00
Rogelio J. Baucells
b4463d9ef3 Initial require() changes 2015-03-04 13:53:32 -05:00
Max Bruckner
9489fbf9dc New generic toString for ConditionalNode 2015-03-01 10:35:03 +01:00
Max Bruckner
0e5a6e5a38 New generic toString for OperatorNode 2015-03-01 10:35:03 +01:00
jos
cdd7bb8a83 Updated to typed-function 0.6.2, fixing a couple of bugs. Conversion from BigNumber to Complex added. 2015-02-26 21:51:25 +01:00
jos
db4a004e58 Merge branch 'develop' into v2
Conflicts:
	HISTORY.md
2015-02-20 19:56:12 +01:00
jos
f532155c7d Refactored multiply to a typed-function 2015-02-07 21:03:26 +01:00
jos
8edf472478 Upgraded to typed-function v0.6.1, more functions refactored. 2015-02-07 20:29:32 +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
3c7c3a2193 Upgraded to decimal.js v4.0.1 2014-12-25 17:47:45 +01:00
jos
97163135b2 Implemented xor operator ^| in the expression parser 2014-12-25 15:45:54 +01:00
jos
73b67bfc09 Removed logical not operator ! (so now we just have logical operators and, not, or, xor). 2014-12-25 14:21:16 +01:00
jos
2614ca6203 Added docs for xor, removed docs of _divide 2014-12-25 14:11:15 +01:00
jos
af08c269f3 Added operators &, |, <<, >>, >>> not, and, or to the expression parser 2014-12-23 16:25:32 +01:00
Favian Contreras
2a5b242091 Added boolean not to parser, and added corresponding test cases. 2014-12-17 01:14:33 -08:00
Favian Contreras
e73df48938 Removed fail test case for now functioning token '~'. Added test cases for it as well. 2014-12-15 04:00:52 -08:00
jos
9257ec3c33 Added unit tests for Node.map and Node.forEach 2014-11-15 13:16:32 +01:00
jos
20c96894ab Enforcing implementation of _traverse on Nodes 2014-11-13 22:16:57 +01:00
jos
72a1b03850 Documented expression tree API. Some internal refactoring in nodes. 2014-11-12 22:30:15 +01:00
jos
db60d95438 Fixed 2e giving a syntax error instead of being parsed as 2 * e (see #229) 2014-11-08 15:27:22 +01:00
jos
7132a6f3c2 Fixed #221 for one-based implementations of map and forEach 2014-10-14 09:03:04 +02:00
jos
839e596772 Implemented transform and traverse 2014-10-11 18:03:41 +02:00
jos
52a922e937 Fixed #210: Disabled array notation for ranges in a matrix index the expression parser 2014-09-09 17:33:53 +02:00
jos
f1313d8be7 Implemented a function filter(x, test) 2014-09-04 20:52:51 +02:00
jos
40f0bb91aa Fixed #210: an zero-based issue when getting a matrix subset using an index containing a matrix 2014-08-25 20:35:10 +02:00
jos
c466c305c7 Fixed a precedence issue with the unit conversion operator 2014-08-23 10:48:00 +02:00
jos
1b1bb8ef7f Fixed a precedence issue with the range operator 2014-08-23 10:32:32 +02:00
jos
40b470dc96 Released version 0.27.0 2014-08-21 20:40:28 +02:00
jos
1c96d1ee9d Expressions in the expression parser can now be spread over multiple lines 2014-08-17 22:24:57 +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
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
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
a6cd7065ed Improved some unit tests 2014-08-03 18:13:04 +02:00
jos
e5ce909524 Reworked the way matrices are resized when dimensions are added/removed 2014-08-03 15:56:39 +02:00
jos
1eb4b33d93 Implemented BigNumber support for functions gcd, xgcd, and lcm 2014-07-24 22:08:46 +02:00
jos
7b08047061 Changed min, max, and mean to one-based dim 2014-07-24 21:35:11 +02:00
jos
8c224d3e71 Moved transformation of error messages (zero-based to one-based) to the expression/transform section 2014-07-20 20:45:10 +02:00
jos
59de16801e Renamed function category "Comparison" with "Relational" 2014-07-20 12:40:34 +02:00
jos
21b34cfa1a Implemented transforms, moved all one-based to zero-based logic for expressions to transforms. 2014-07-19 21:47:15 +02:00
jos
1a9ceac955 Multi-line expressions now return a ResultSet instead of an Array. 2014-07-18 21:34:37 +02:00
jos
4853a707a9 Fixed a typo in the docs 2014-07-01 14:19:37 +02:00
jos
037e022905 Some fixes in operator precedence 2014-07-01 14:06:44 +02:00
jos
4645529f40 Removed function ifElse 2014-06-30 14:52:54 +02:00
jos
8ad1b274e7 Removed unreachable error message 2014-06-30 13:51:09 +02:00
jos
5e1cfbf545 Implemented implicit multiplication. Fixed a bug with multiplying non-valued temperatures with a number 2014-06-30 13:43:50 +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
a9226ef70d Fixed #187: changed the behavior of the conditional operator (a ? b : c) to lazy evaluation. 2014-06-20 21:14:58 +02:00
jos
9f346f19bc Changed signature of math.parse(expr, nodes) to math.parse(expr, options) 2014-06-10 21:35:06 +02:00