915 Commits

Author SHA1 Message Date
Max Bruckner
5767f1f912 OperatorNode: Fix bug from wrong use of getIdentifier
1+(1+1) with parenthesis set to 'auto' triggered a bug because
getPrecedence gets the precedence of the content of a node, but
getIdentifier still returns the 'ParenthesisNode' identifier in case of
a ParenthesisNode.
2015-05-07 12:04:53 +02:00
Max Bruckner
2959858b99 operators: Use config when calculating precedence etc.
Use the parenthesis configuration to decide wether ParenthesisNodes
should be skipped or not.
2015-05-07 10:13:43 +02:00
Max Bruckner
60e2b5700a ParenthesisNode: Make use of the parenthesis config option 2015-05-07 10:13:41 +02:00
Max Bruckner
6c2cd7f7b7 Node: add method 'getContent()'
The 'getContent' method returns the next node down the node tree that
isn't a ParenthesisNode.
2015-05-07 10:12:41 +02:00
Max Bruckner
dd0a5e3a68 Parse parentheses into ParenthesisNodes 2015-05-07 10:12:41 +02:00
Max Bruckner
5b8bb06804 New configuration option 'parenthesis'
This option can be one of 'keep', 'auto' or 'all'
2015-05-07 10:12:41 +02:00
Max Bruckner
ea04373028 New ParenthesisNode to represent parentheses in the node tree 2015-05-07 10:12:40 +02:00
Max Bruckner
bc2c29be8c Make _toString functions call the wrapper 2015-05-07 10:12:32 +02:00
Rogelio J. Baucells
68a864eef0 Fixed bug in algorithm04 2015-05-05 16:56:36 -04:00
jos
06b9664b87 Removed more instanceof checks 2015-05-05 15:21:57 +02:00
jos
8c032f2593 Replaced all instanceof checks with x && xisMyType === true checks 2015-05-05 15:09:21 +02:00
jos
3242cd8550 Attached properties like.type === 'Complex' and .isComple to all data types 2015-05-05 14:35:45 +02:00
jos
320378543f Moved the primitive types to ./lib/type again (not in a subfolder primitive) 2015-05-05 14:04:23 +02:00
jos
b32b89f94c Moved help/docs related stuff to ./lib/expression 2015-05-05 14:01:38 +02:00
jos
7e3eda8603 Moved all data types and their construction functions into a folder of their own under ./lib/type 2015-05-05 13:51:24 +02:00
jos
3dc48519d9 Moved FibonacciHeap to ./lib/type/matrix 2015-05-05 12:04:57 +02:00
jos
758107428c Moved collection.js and Matrix.js under ./lib/type/matrix, moved construction functions matrix.js and sparse.js to ./lib/type/matrix/function, and created an index file. 2015-05-05 12:00:07 +02:00
jos
8b06d04d48 Moved expression related functions under ./lib/expression/function 2015-05-05 11:52:18 +02:00
jos
052c6109af Moved related functions to ./lib/core 2015-05-05 11:49:39 +02:00
Jos de Jong
cd6f6df393 Merge pull request #346 from rjbaucells/sparse-arithmetic
Sparse arithmetic updates
2015-05-05 11:04:18 +02:00
Rogelio J. Baucells
1b3cf30e98 Fixed performance problems with array 2015-05-05 01:25:15 -04:00
Rogelio J. Baucells
d86de79aad Algorithm updates (fixed array performance problem) 2015-05-05 00:54:28 -04:00
Rogelio J. Baucells
4f57b33747 Array fix 2015-05-05 00:14:01 -04:00
rjbaucells
79d933d1e3 algorithm13 - stack based 2015-05-04 20:10:37 -04:00
rjbaucells
c1b5c38be1 algorithm13 updates 2015-05-04 19:23:34 -04:00
Rogelio J. Baucells
00a493b820 algorithm13 updates 2015-05-04 18:18:39 -04:00
Rogelio J. Baucells
e48c378b2d algorithm13 updates 2015-05-04 17:45:56 -04:00
Rogelio J. Baucells
ace5191714 algorithm04 updates 2015-05-04 16:37:58 -04:00
rjbaucells
16bb1d189a to updates 2015-05-04 09:41:59 -04:00
Rogelio J. Baucells
64f25e482f Update README.md 2015-05-04 09:12:40 -04:00
Rogelio J. Baucells
0f7c87c83e Update README.md 2015-05-04 09:08:27 -04:00
Rogelio J. Baucells
3512f1f4f9 Update README.md 2015-05-04 09:08:03 -04:00
Rogelio J. Baucells
a3769b0c5e Update README.md 2015-05-04 09:07:16 -04:00
Rogelio J. Baucells
fbcf8e2c10 Update README.md 2015-05-04 09:06:30 -04:00
Rogelio J. Baucells
2e4e69e62a Update README.md 2015-05-04 09:06:16 -04:00
Rogelio J. Baucells
c9ec4c26c9 doc updates 2015-05-04 09:05:37 -04:00
Rogelio J. Baucells
fab41d3bce doc updates 2015-05-04 09:04:02 -04:00
Rogelio J. Baucells
4bbef7b6de doc updates 2015-05-04 09:01:38 -04:00
Rogelio J. Baucells
2a737c146a doc updates 2015-05-04 09:00:14 -04:00
rjbaucells
f40e46a7ce documentation 2015-05-04 08:59:05 -04:00
rjbaucells
586b93bcf3 atan2 updates 2015-05-03 23:39:06 -04:00
rjbaucells
fa24a92b24 atan2 updates - partial 2015-05-03 23:36:05 -04:00
rjbaucells
ff2ddc51ae unequal updates 2015-05-03 22:43:56 -04:00
rjbaucells
36ffb9444f smallerEq updates 2015-05-03 22:38:08 -04:00
rjbaucells
1d7e9bb374 smaller updates 2015-05-03 22:33:16 -04:00
rjbaucells
5293c22c10 largerEq updates 2015-05-03 22:28:35 -04:00
rjbaucells
5880adfd8c larger updates 2015-05-03 22:23:50 -04:00
rjbaucells
2d8410a5fa equal updates 2015-05-03 19:05:21 -04:00
rjbaucells
71fa09dc66 compare & algorithm05 updates 2015-05-03 17:40:38 -04:00
rjbaucells
37b296a2e2 divide 2015-05-03 16:35:13 -04:00