144 Commits

Author SHA1 Message Date
josdejong
d19e7ea570 Switched to module decimal.js for BigNumber support, instead of bignumber.js. 2014-04-04 21:08:33 +02:00
josdejong
721f21574e Some more unit tests 2014-04-03 22:23:35 +02:00
josdejong
f568ae75c1 More unit tests added 2014-04-03 20:58:43 +02:00
josdejong
b3ab923a69 Implemented conditional operator a ? b : c in expression parser 2014-04-01 20:49:55 +02:00
josdejong
c74afb7dcb Improved function ifElse 2014-03-31 21:24:46 +02:00
josdejong
b333ad073a Implemented function median 2014-03-29 22:26:12 +01:00
josdejong
763abb425e Implemented function compare 2014-03-29 21:43:22 +01:00
josdejong
a073a95859 Implemented functions sum, prod, var, std. Reducing a matrix over a specified dimension still missing 2014-03-29 14:45:09 +01:00
josdejong
9ae103c394 More unit tests 2014-03-21 21:38:26 +01:00
josdejong
f51f4454f5 More unit tests 2014-03-17 21:29:52 +01:00
josdejong
baa2fb43c6 Ignoring an else case for coverage of unit tests 2014-03-15 23:11:06 +01:00
josdejong
e8cb8f91ce Some more unit tests 2014-03-15 23:05:20 +01:00
josdejong
5dc010c889 Some more unit tests 2014-03-15 22:11:44 +01:00
josdejong
f1ea498927 Added some more unit tests 2014-03-15 15:27:05 +01:00
Jos de Jong
99f5de862d Merge pull request #144 from mtraynham/if_else_function
Adds the ifElse function.
2014-03-13 09:27:25 +01:00
Matt Traynham
7d26235842 Adds support for IfElse ternary operation functions. These can be used in the compiler as well. Much easier than adding basic parse support for ternary operands '?' & ':'. 2014-03-11 20:07:02 -04:00
josdejong
eca2326802 More unit tests 2014-03-01 21:35:55 +01:00
josdejong
f48beee1f9 Added some more unit tests 2014-02-25 22:37:53 +01:00
josdejong
b7826bf65a Implemented function compile 2014-02-15 17:59:19 +01:00
Finn
8b2a6a13f3 Improved det tests and fixed bug
Before the det function changed the original values of the input array/matrix. I fixed this problems and added tests to account for that. I additionally added some more tests and enforced the input to be an array or a matrix since determinants are not defined for other types
2014-02-09 17:26:33 +01:00
Jos de Jong
5f6d3ae988 Merge pull request #136 from hamadu/faster-matrix-power-wip
Faster matrix power
2014-02-08 18:19:16 +01:00
hama_du
9f90696b37 compute power of matrix faster
added large size of matrix test

compute power of matrix faster
2014-02-08 20:10:15 +09:00
josdejong
b520a198ac Fixed #134: error in function combinations for large numbers 2014-01-31 23:23:57 +01:00
josdejong
36c38982e5 ArgumentsError now extends Error instead of SyntaxError 2014-01-31 23:22:17 +01:00
josdejong
36a65785fb Merge branch 'develop' into expression_compilation
Conflicts:
	HISTORY.md
2014-01-07 21:45:51 +01:00
josdejong
bc157eb400 Updated docs and examples 2014-01-07 21:44:00 +01:00
josdejong
5d96ce4c16 Removed old code for expression evaluation 2014-01-07 21:07:43 +01:00
josdejong
00e55b917e Replaced eval with compile 2014-01-07 16:12:57 +01:00
josdejong
8ce1a122bb Some minor code rearrangement 2014-01-07 14:25:32 +01:00
Daniel Levin
a6878572b9 added n <= k condition to permutations, combinations 2014-01-07 13:32:26 +02:00
Daniel Levin
f6fa5bf575 Added BigNumber support to combinations (and tests) 2014-01-07 13:27:56 +02:00
Daniel Levin
17acaaf9eb added BigNumber support to permutations (with tests) 2014-01-07 13:19:58 +02:00
Daniel Levin
365490cf11 Changed parseInt to Math.floor
also added vim swap files to .gitignore
2014-01-07 12:58:09 +02:00
Daniel Levin
fc1ac7efa4 changed x to n in permutations 2014-01-06 12:02:00 +02:00
Daniel Levin
4d72b3b0d5 added n <= k condition to combinations function
and also changed x to n in combinations
2014-01-06 12:00:47 +02:00
josdejong
965f4232ad Added docs on combinations / permutations 2014-01-06 10:43:31 +01:00
josdejong
9d1b9d6a81 Renamed parameters in IndexNode 2014-01-05 22:20:08 +01:00
josdejong
c2c8bb61cf Compilation of UpdateNode working again 2014-01-05 22:18:32 +01:00
josdejong
bc05d8b9e8 Changed matrix index notation of expression parser from round brackets to square brackets 2014-01-05 21:52:13 +01:00
Daniel Levin
6c88d7b58a added more tests for combinations. Fixes #99 2014-01-05 14:16:14 +02:00
Daniel Levin
45b619cf84 added combinations function 2014-01-05 13:44:45 +02:00
josdejong
d7349296c0 Implemented IndexNode 2014-01-04 17:53:02 +01:00
Daniel Levin
b2acc29d04 added more tests 2014-01-04 18:01:21 +02:00
Daniel Levin
987111aefd removed useless imports 2014-01-04 17:51:08 +02:00
Daniel Levin
a1b8588bdd added tests for permutations function 2014-01-04 17:41:41 +02:00
Daniel Levin
d8f926bbb6 added permutations function addressing #99 2014-01-04 17:28:25 +02:00
josdejong
f6acb12e4d Implemented expression compilation for 80% 2014-01-01 20:46:30 +01:00
josdejong
8e814cbc82 Implemented an argument includeEnd for function range (false by default) 2014-01-01 19:03:15 +01:00
josdejong
f89a9945e3 Removed deprecated function in, gives conflicts :( 2013-12-21 22:23:38 +01:00
josdejong
7091cd4fa7 Added error for deprecated function in 2013-12-21 21:29:50 +01:00