1601 Commits

Author SHA1 Message Date
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
b046c7ee98 Completed unit tests for all expression nodes 2014-03-01 15:55:20 +01:00
josdejong
42548e1cf0 More unit tests 2014-02-28 22:50:46 +01:00
josdejong
32b0d33351 Cleaned up some dead code 2014-02-26 21:23:11 +01:00
josdejong
30d9d4653c Some more unit tests added 2014-02-26 21:07:22 +01:00
josdejong
f48beee1f9 Added some more unit tests 2014-02-25 22:37:53 +01:00
josdejong
b37b7fc697 yihaa, the first automatically generated reference docs for functions 2014-02-19 21:56:03 +01:00
josdejong
c7ffb60634 Added reference docs for cube, exp, pow, square 2014-02-16 20:32:31 +01:00
josdejong
a09e302b97 Added reference docs for ceil, fix, floor, and round 2014-02-16 18:07:27 +01:00
josdejong
5d1997cc61 Added reference docs for abs, add, divide, multiply, subtract 2014-02-16 17:45:47 +01:00
josdejong
32aa26e768 Merge branch 'develop' into reference 2014-02-15 19:05:15 +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
5af9c51adb Added stacktrace to UnsupportedTypeError and ArgumentsError 2014-01-31 19:58:06 +01:00
josdejong
a16bdac0c4 Reference documentation for abs and add 2014-01-31 19:55:47 +01:00
josdejong
591c3f9000 Fixed #132: Added unit feet 2014-01-20 21:43:11 +01:00
josdejong
b214cdbd54 Fixed broken example old_browsers.html 2014-01-20 16:12:07 +01:00
josdejong
fe8d832bed Released version 0.18.0 2014-01-18 14:30:56 +01:00
josdejong
8226e524f9 Added plurals and aliases for units. 2014-01-18 14:19:08 +01:00
josdejong
97be029d6e Removed need to use the function keyword for function assignments in the expression parser 2014-01-18 11:18:29 +01:00
josdejong
8400b99b1e History updated 2014-01-07 22:05:22 +01:00
josdejong
a5f10ff709 Added lowercase l for unit litre 2014-01-07 21:49:47 +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
c13da00dce Updated combinations/permutations documentation 2014-01-07 13:40:54 +02: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
josdejong
28205b04e2 IndexNode works now for getting a subset too 2014-01-06 22:29:25 +01: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
c0d312adbf Better error in case of wrong object type in ParamsNode 2014-01-05 22:01:08 +01:00
josdejong
9e7c641302 Cleaned up ParamsNode 2014-01-05 21:58:13 +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