Max Bruckner
5b160767c1
operators.js: Pass parenthesis option directly
2015-05-16 13:31:57 +02:00
Max Bruckner
a893307831
Remove global "parenthesis" configuration option
2015-05-16 13:30:56 +02:00
Max Bruckner
3f217cefdd
toTex: no global configuration. Only pass around one local object
2015-05-16 13:30:25 +02:00
Max Bruckner
c0e1b2d268
toString: no global configuration. Only pass around one local object
2015-05-16 13:29:55 +02:00
Max Bruckner
8d3b3bbe35
Tests for custom toString
2015-05-16 13:29:20 +02:00
Max Bruckner
291d620972
Pass local configuration to toTex functions
2015-05-16 13:27:48 +02:00
Max Bruckner
e383c1c2ce
Throw errors when trying to toTex/toString a Node interface
2015-05-16 13:21:39 +02:00
jos
096a5f3a55
Upgraded to typed-function v0.8.3. Implemented support for merging typed-functions via math.import. Added option silent for math.import.
2015-05-16 11:33:58 +02:00
Favian Contreras
9df7ee1701
Implemented a partition-based selection function, which uses the quickselect algorithm. Tests as well.
2015-05-15 02:37:13 -07:00
rjbaucells
b5931fb116
solvers
2015-05-14 23:04:59 -04:00
rjbaucells
ceca6af8d3
slu() and lusolve()
2015-05-14 20:24:26 -04:00
Favian Contreras
fbfbd030d1
Removed the ability to insert data as a series of scalar values. Consolidated sorted and normal cases into 1 file. Added ability to use a list of probabilities, or an integer as a number of would be evenly spaced probabilities.
2015-05-14 08:06:38 -07:00
rjbaucells
799ccc9463
set from parser
2015-05-13 22:45:28 -04:00
rjbaucells
86314047ac
Set tests
2015-05-13 21:05:01 -04:00
rjbaucells
c24235ec3b
tests - final
...
missing file
2015-05-13 20:30:49 -04:00
rjbaucells
6f8fca77cb
tests - final
2015-05-13 20:29:43 -04:00
Rogelio J. Baucells
06927131c7
tests - partial
2015-05-13 17:55:52 -04:00
Rogelio J. Baucells
7e5980c812
tests - partial
2015-05-13 17:24:38 -04:00
Rogelio J. Baucells
9fe3395d7f
tests - partial
2015-05-13 15:26:15 -04:00
rjbaucells
464c4c5434
tests - partial
2015-05-12 22:31:23 -04:00
rjbaucells
83e090d015
tests - partial
2015-05-12 22:07:55 -04:00
rjbaucells
e9d4fd9e8b
tests - partial
2015-05-12 21:21:57 -04:00
rjbaucells
dce3aeee5b
tests - partial
2015-05-12 20:51:43 -04:00
jos
ec3ad5461f
Added Fraction support for cube and square. Fixed operations on Fractions mutating the original fraction.
2015-05-12 21:26:51 +02:00
jos
4367259254
Implemented toJSON and fromJSON for Fraction
2015-05-12 20:42:52 +02:00
jos
4766546748
Added fraction support for functions ceil, fix, floor, round
2015-05-12 20:26:42 +02:00
jos
b831ad2b72
Added support for fractions to function math.format (including output option fraction='decimal' | 'ratio')
2015-05-12 19:43:11 +02:00
jos
0c1e9deeeb
Implemented configuration value {number: 'fraction'}. Added docs and example for fractions.
2015-05-12 14:40:47 +02:00
jos
a0ad13b9e0
Added support for Fraction in functions compare, equal, larger, largerEq, smaller, smallerEq, unequal.
2015-05-12 13:46:50 +02:00
jos
44b2129740
Added Fraction support for abs, gcd, mod. Added a valueOf() method to Fraction
2015-05-12 13:25:05 +02:00
Favian Contreras
ae3267d5b8
Basic quantile implementation and tests (see issues #305 and #354 ). There is also an implementation that assumes the input is sorted in ascending order, to maintain an O(1) runtime.
2015-05-12 03:04:51 -07:00
jos
73f2dc2601
Implemented Fraction (using library fraction.js) for add, subtract, multiply, divide.
2015-05-12 11:42:57 +02:00
rjbaucells
a432b732ef
Merge remote-tracking branch 'origin/v2-test' into v2-sparse
2015-05-10 12:17:37 -04:00
Rogelio J. Baucells
d358a6d7f9
Merge pull request #44 from josdejong/v2
...
v2 sync
2015-05-10 11:24:42 -04:00
Jos de Jong
7d14e3349f
Merge pull request #360 from FSMaxB/ParenthesisNode_v2
...
ParenthesisNode and parenthesis configuration options for v2
2015-05-09 21:03:06 +02:00
rjbaucells
d3902a2fcf
lusolve() - partial
2015-05-09 11:21:23 -04:00
Rogelio J. Baucells
b7e04cb5b8
datatype optimizations - partial
2015-05-09 11:04:44 -04:00
jos
04f09c52c3
Merge remote-tracking branch 'origin/v2' into v2
2015-05-09 14:53:42 +02:00
jos
868b2702b5
Updated to typed-function v0.8, creating a new instance of typed-function for each instance of math.js. Better error messages and new utility functions typed.convert and typed.find.
2015-05-09 14:53:36 +02:00
Rogelio J. Baucells
737d476970
slu() and lusolve()
2015-05-08 15:45:03 -04:00
Devan Patel
2fba039dd6
Adding support for Multinomial + test.
2015-05-08 13:20:17 -04:00
Max Bruckner
aa7ca9178f
Implement 'all' parenthesis option
2015-05-08 09:07:15 +02:00
rjbaucells
e3cee480ec
Merge remote-tracking branch 'origin/v2-test' into v2-sparse
2015-05-07 23:53:13 -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