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
|
0d34992080
|
Merge pull request #23 from josdejong/develop
Sync
|
2015-03-19 00:06:26 -04:00 |
|
Max Bruckner
|
47f76f35ac
|
Limit custom toTex with multiple callbacks to FunctionNodes
Now only FunctionNode's toTex can be overwritten mit a map of callbacks
|
2015-03-17 18:14:14 +01:00 |
|
Max Bruckner
|
af763aa996
|
Fix breaking change (Node.toTex should return an empty string)
|
2015-03-13 21:23:14 +01:00 |
|
Max Bruckner
|
0fee9173c8
|
Enable custom toTex functions
|
2015-03-13 21:23:14 +01:00 |
|
Max Bruckner
|
35ce7f7fb4
|
Make Node.toTex a wrapper like Node.compile
Node.prototype.toTex is now a wrapper that calls the node's _toTex
|
2015-03-13 21:23:14 +01: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
|
21db7d8de9
|
Parser fixes
|
2015-03-04 15:29:12 -05:00 |
|
Rogelio J. Baucells
|
da377b9fb7
|
Parser fixes
|
2015-03-04 14:39:53 -05:00 |
|
Rogelio J. Baucells
|
b4463d9ef3
|
Initial require() changes
|
2015-03-04 13:53:32 -05:00 |
|
Max Bruckner
|
6a9c2df38c
|
Update FunctionAssignmentNode to better handle parenthesis
|
2015-03-01 17:10:09 +01:00 |
|
Max Bruckner
|
bb2bfc939c
|
Update AssignmentNode to better handle parenthesis
|
2015-03-01 17:02:42 +01:00 |
|
Max Bruckner
|
b2d868c2ed
|
Update OperatorNode's toTex to better handle parens
Use the new infrastructure in OperatorNode's toTex
|
2015-03-01 16:34:09 +01:00 |
|
Max Bruckner
|
b5ce799e9d
|
New generic toString for AssignmentNode
|
2015-03-01 10:35:04 +01:00 |
|
Max Bruckner
|
1f2f42012c
|
New generic toString for FunctionAssignmentNode
|
2015-03-01 10:35:04 +01:00 |
|
Max Bruckner
|
b1a438fd7f
|
New generic toString for RangeNode
|
2015-03-01 10:35:03 +01:00 |
|
Max Bruckner
|
9489fbf9dc
|
New generic toString for ConditionalNode
|
2015-03-01 10:35:03 +01:00 |
|
Max Bruckner
|
1ac3319656
|
OperatorNode: validate input
|
2015-03-01 10:35:03 +01:00 |
|
Max Bruckner
|
0e5a6e5a38
|
New generic toString for OperatorNode
|
2015-03-01 10:35:03 +01:00 |
|
Max Bruckner
|
2e51086fda
|
Function to check associativity between operators
'isAssociativeWith(a,b)' to check if a is associative with b.
Example:
'+' is associative with '-' because (a+b)-c=a+(b-c)
|
2015-03-01 10:35:03 +01:00 |
|
Max Bruckner
|
91c0dd6b6d
|
Function getAssociativity
Function to get the left/right associativity of an operator
|
2015-03-01 10:35:03 +01:00 |
|
Max Bruckner
|
9a3c3f9f95
|
Function getPrecedence to get operator precedence.
|
2015-03-01 10:35:03 +01:00 |
|
Max Bruckner
|
d593e749e9
|
New function getIdentifier() for Nodes
getIdentifier() returns a String that contains the name of the node and
the function associated with it ( in case of FunctionNode and
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 |
|
Max Bruckner
|
e587f0ce00
|
New tests for Operator mode
* Factorial of Operator node
* Test unaryMinus with sums and differences
* Test OperatorNode that substracts an OperatorNode
|
2015-02-14 16:31:05 +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
|
3d84b47658
|
Fixed #258: missing parentheses in the toTex representation of function permutations.
|
2015-01-03 10:29:55 +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
|
309bf3938d
|
Added proper error messages to Node.map
|
2014-11-15 13:32:02 +01:00 |
|
jos
|
9257ec3c33
|
Added unit tests for Node.map and Node.forEach
|
2014-11-15 13:16:32 +01:00 |
|
jos
|
5669ae1365
|
Some refactoring
|
2014-11-14 11:35:13 +01:00 |
|
jos
|
a1f60db0d1
|
Created Node.map, changed traverse to use Node.map
|
2014-11-14 11:25:48 +01:00 |
|
jos
|
20c96894ab
|
Enforcing implementation of _traverse on Nodes
|
2014-11-13 22:16:57 +01:00 |
|
jos
|
be9a8629ea
|
Node.transform does not create a clone of the tree anymore
|
2014-11-13 22:01:48 +01:00 |
|
jos
|
92627f2c94
|
Nodes for a BlockNode must now be passed via the constructor instead of via a function add
|
2014-11-13 21:54:41 +01:00 |
|
jos
|
423909e6f1
|
Changed constructor of RangeNode to new RangeNode(start: Node, end: Node [, step: Node]).
|
2014-11-13 21:25:37 +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
|
bd1981ecd0
|
Renamed Node.map and Node.forEach back to traverse and transform
|
2014-10-13 21:42:48 +02:00 |
|