171 Commits

Author SHA1 Message Date
josdejong
fdc7c8db03 Fixed some errors after solving merge conflicts 2014-04-11 22:18:40 +02:00
josdejong
f0035e8c41 Merge branch 'master' into develop
Conflicts:
	lib/function/arithmetic/compare.js
	lib/function/arithmetic/equal.js
	lib/function/arithmetic/larger.js
	lib/function/arithmetic/largereq.js
	lib/function/arithmetic/smaller.js
	lib/function/arithmetic/smallereq.js
	lib/function/arithmetic/unequal.js
	lib/math.js
	lib/util/number.js
	test/math.test.js
2014-04-11 22:15:31 +02:00
Rogelio J. Baucells
ed5ab3f629 Formatting fixes 2014-04-11 15:55:29 -04:00
Rogelio J. Baucells
24be94a680 Floating point numbers equality/inequality
implemented compare, larger, largereq smaller and smallereq functions
2014-04-11 14:28:05 -04:00
josdejong
97cbb0093f Moved errors to their own namespace and folder 2014-04-11 18:02:29 +02:00
josdejong
922ce679e6 Moved UnsupportedTypeError to the others, and made it independent of the math namespace 2014-04-11 17:44:55 +02:00
rjbaucells
2778ae935a Floating point numbers equality/inequality 2014-04-10 21:27:44 -04:00
Rogelio J. Baucells
9204e0e6aa Floating point numbers equality 2014-04-10 15:48:14 -04:00
rjbaucells
a6bfaf8d3a Floating point numbers equality 2014-04-10 00:38:26 -04:00
rjbaucells
eebd866e1d Floating point numbers equality
first implementation
2014-04-10 00:23:05 -04:00
rjbaucells
743c36acbd Floating point numbers equality 2014-04-10 00:00:43 -04:00
josdejong
b7d016b626 Added bignumber support for improved function det. 2014-04-09 08:28:37 +02:00
josdejong
27df7e0660 Fixed merge conflicts 2014-04-09 08:14:02 +02:00
Bryan Cuccioli
8692d7ffa1 Implement poly-time determinant without divisions.
This is based on the paper 'A Simple Division-Free Algorithm for
Computing Determinants' (Bird 2011).
2014-04-07 07:10:06 +00:00
josdejong
492d7f4c4f Moved ArgumentsError from lib/type/ to lib/util/ 2014-04-06 21:25:46 +02:00
josdejong
d0fb727c43 Implemented DimensionError and IndexError 2014-04-06 20:53:23 +02:00
josdejong
a7b24eca8c Implemented BigNumber support for function diag 2014-04-06 12:57:55 +02:00
josdejong
83b41a16ab Implemented BigNumber support for functions exp, log, and log10. 2014-04-06 12:01:10 +02:00
josdejong
8cea27406b Some internal refactoring 2014-04-06 11:22:13 +02:00
josdejong
d8ddbfddac Fixed #156: Fixed support for element-wise comparisons between a string and a matrix 2014-04-05 23:47:54 +02:00
josdejong
fab41839bc Implemented BigNumber support for function det 2014-04-05 23:30:46 +02:00
josdejong
bc7672b228 Merge remote-tracking branch 'origin/develop' into develop 2014-04-05 23:01:32 +02:00
Jos de Jong
fbc62242ae Merge pull request #155 from finnp/develop
Add support for polar coordinates in complex numbers
2014-04-05 23:01:20 +02:00
josdejong
42748689a1 Removed preliminary rounding of results of det 2014-04-05 22:53:38 +02:00
josdejong
ad554ef1f7 Updates and fixes to work with a different BigNumber instance per math.js instance 2014-04-05 22:42:03 +02:00
Finn
333f881c4d Add constructor support for polar and {re:..,im:..} Fixes #76 2014-04-05 02:14:14 +02:00
josdejong
d19e7ea570 Switched to module decimal.js for BigNumber support, instead of bignumber.js. 2014-04-04 21:08:33 +02:00
Finn
754b33b983 Add fromPolar and math.complex with polar input #76 2014-04-04 01:27:05 +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