251 Commits

Author SHA1 Message Date
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
97be029d6e Removed need to use the function keyword for function assignments in the expression parser 2014-01-18 11:18:29 +01:00
josdejong
36a65785fb Merge branch 'develop' into expression_compilation
Conflicts:
	HISTORY.md
2014-01-07 21:45:51 +01:00
josdejong
3f25831ee2 Moved parse tests 2014-01-07 21:12:28 +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
933542cd68 Tests for non-integer bignumbers in combinations 2014-01-07 13:34:44 +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
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
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
Daniel Levin
6c88d7b58a added more tests for combinations. Fixes #99 2014-01-05 14:16:14 +02:00
Daniel Levin
b2acc29d04 added more tests 2014-01-04 18:01:21 +02:00
Daniel Levin
a1b8588bdd added tests for permutations function 2014-01-04 17:41:41 +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
bdf7d44dd2 Added operator in to expression parser (alias of to) 2013-12-21 21:24:56 +01:00
Elijah Insua
be67514557 move the 'in' unit conversion keyword to 'to'
This also enables 'in' as an alias of 'inch'.  refs #120
2013-12-20 15:31:18 -07:00
josdejong
2b98831d84 Fixed #119: bug with negative temperatures 2013-12-14 14:26:30 +01:00
josdejong
d22168ea88 Added script for coverage report 2013-12-14 13:20:27 +01:00
josdejong
91dae90e1e Fixed #108: math.js not working in Java's ScriptEngine 2013-12-10 21:34:37 +01:00
josdejong
1d54a99bce More neat formatting of functions 2013-12-09 21:21:34 +01:00
josdejong
f2f1ae1f72 Renamed and flattened configuration settings 2013-12-07 11:39:45 +01:00
josdejong
b4257f6cd6 Fixed #118: mod and in not working as function 2013-12-06 09:55:30 +01:00
josdejong
f9446875df Function multiply now consistently outputs a complex number on complex input 2013-11-30 10:08:37 +01:00
josdejong
f5ea5938a9 Renamed scientific notation to exponential in function format 2013-11-28 16:28:04 +01:00
josdejong
9338e0a4ec All arithmetic functions can now handle mixed complex numbers, big numbers, and units 2013-11-28 11:41:18 +01:00
josdejong
9566218b12 Function add can now handle mixed complex and big numbers 2013-11-27 15:21:02 +01:00
josdejong
279809fd79 Ranges and indexes can now handle big numbers by downgrading to numbers 2013-11-27 14:16:46 +01:00
josdejong
21735cf1c8 RangeNode can handle BigNumbers now (downgrades to numbers) 2013-11-27 13:18:01 +01:00
josdejong
77c3b48df1 Implemented bignumber support for function range 2013-11-27 13:06:46 +01:00
josdejong
8761910b75 Fixed a bug in collection.deepMap2 2013-11-26 20:45:39 +01:00
josdejong
7ab15f1d29 Implemented bignumber support for functions eye, ones, resize, size, zeros, factorial 2013-11-23 20:48:01 +01:00
josdejong
b3812362fd Implemented bignumber downgrading for all not-supported functions 2013-11-23 14:14:44 +01:00
josdejong
4a99e03055 All arithmetic functions not supporting BigNumbers downgrade BigNumbers to Numbers 2013-11-23 10:55:39 +01:00
josdejong
26c0332883 On mixed Number/BigNumber inputs, all operators now downgrade the inputs if Number is a fraction. 2013-11-23 10:28:42 +01:00
josdejong
bf8eb9a01b Implemented setting number.precision for big numbers. 2013-11-21 14:05:23 +01:00
josdejong
3a4c1c5ef0 Internally renamed variable options to settings 2013-11-21 13:39:24 +01:00
josdejong
80b8b34042 Implemented function config 2013-11-21 13:13:26 +01:00
josdejong
b366d97a20 Function resize now has an extra optional parameter defaultValue 2013-11-21 12:09:12 +01:00
josdejong
ea51c6c86c math.options is no longer exposed as property 2013-11-21 10:37:04 +01:00
josdejong
21e4f7f160 Neatly splitted calculations with Numbers and Booleans 2013-11-19 21:34:20 +01:00