1978 Commits

Author SHA1 Message Date
Max Bruckner
51cfc0b779 Update documentation (ParenthesisNode and parenthesis config option) 2015-05-08 09:07:25 +02:00
Max Bruckner
fa4fba4dbf Implement parenthesis options in pretty printing example 2015-05-08 09:07:25 +02:00
Max Bruckner
aa7ca9178f Implement 'all' parenthesis option 2015-05-08 09:07:15 +02:00
rjbaucells
c5f2f80bf2 Merge branch 'v2-sparse' of https://github.com/rjbaucells/mathjs into v2-sparse 2015-05-07 23:59:03 -04:00
rjbaucells
e3cee480ec Merge remote-tracking branch 'origin/v2-test' into v2-sparse 2015-05-07 23:53:13 -04:00
rjbaucells
e8111f3958 doc updates 2015-05-07 23:50:53 -04:00
rjbaucells
dd6335a6db lsolve() and usolve() 2015-05-07 23:43:28 -04:00
Devan Patel
adc96a9b2e Adding permutation type 2015-05-07 13:48:47 -04:00
Max Bruckner
c6f22e3663 unskip tests that were broken by parsing parenthesis nodes 2015-05-07 12:06:37 +02:00
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
rjbaucells
fe8599a1b6 Do not call equal() for all items 2015-05-05 20:16:18 -04:00
rjbaucells
1b02fc26c4 Revert "Do not call equal() for all items"
This reverts commit 0edf1fe27f9b1ce25d63b6024db5e5d32070d24d.
2015-05-05 20:05:50 -04:00
rjbaucells
0edf1fe27f Do not call equal() for all items 2015-05-05 19:58:47 -04:00
Rogelio J. Baucells
ba88236dc4 Merge pull request #359 from rjbaucells/v2
Fixed bug in algorithm04
2015-05-05 17:37:15 -04:00
Rogelio J. Baucells
8603f8212e Merge remote-tracking branch 'origin/v2' into v2-sparse 2015-05-05 17:22:20 -04:00
Rogelio J. Baucells
92d270ca31 Test for algorithm04 bug 2015-05-05 17:16:24 -04:00
Rogelio J. Baucells
9b98aba8ff Replaced new Array() for [] 2015-05-05 17:12:02 -04:00
Rogelio J. Baucells
556f73789b Merge remote-tracking branch 'origin/v2' into v2-sparse 2015-05-05 16:57:06 -04:00
Rogelio J. Baucells
68a864eef0 Fixed bug in algorithm04 2015-05-05 16:56:36 -04:00
Max Bruckner
b762d16dd8 Merge pull request #357 from devanp92/patch-1
Deleting console.log statement
2015-05-05 21:57:37 +02:00
Devan Patel
e33ae343c5 Deleting console.log statement
https://github.com/josdejong/mathjs/issues/355
2015-05-05 14:10:01 -04:00
Rogelio J. Baucells
528128c2fe Merge pull request #42 from josdejong/v2
v2 sync
2015-05-05 10:24:25 -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
7b4f83b83b Merge remote-tracking branch 'origin/v2' into v2 2015-05-05 11:05:04 +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
Devan Patel
fc693b469b Adding permutation type 2015-05-05 00:18:13 -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