99 Commits

Author SHA1 Message Date
jos
8a12c8e9bc Fixed #200: A new instanceof of math.js must now be created as math.create([options]) instead of math([options]) 2014-08-03 21:42:12 +02:00
jos
e5ce909524 Reworked the way matrices are resized when dimensions are added/removed 2014-08-03 15:56:39 +02:00
jos
2edb462615 Fixed function gxcd returning an Array when math.js was configured as {matrix: 'matrix'}. 2014-07-24 22:15:22 +02:00
jos
1eb4b33d93 Implemented BigNumber support for functions gcd, xgcd, and lcm 2014-07-24 22:08:46 +02:00
jos
5e1cfbf545 Implemented implicit multiplication. Fixed a bug with multiplying non-valued temperatures with a number 2014-06-30 13:43:50 +02:00
jos
7d84e4daf0 Math.js now immediately returns a default instance of mathjs, no need to create an instance every time you want to use the library. 2014-06-20 23:11:14 +02:00
jos
40d66224e8 Moved the comparison functions from section "arithmetic" to a new section "comparison" 2014-06-09 14:21:54 +02:00
jos
ced18ecfca Implemented functions dotEqual and dotUnequal, renamed functions smallereq to smallerEq and largereq to largerEq (all functions are now camelcase) 2014-06-09 14:07:21 +02:00
jos
0ae566db8d Renamed functions edivide, emultiply, and epow to dotdivide, dotmultiply, and dotpow respectively. 2014-06-09 11:09:06 +02:00
jos
3399909318 Implemented unary plus 2014-06-08 20:49:52 +02:00
jos
abf1b02ee9 Renamed function unary to unaryminus. Documented and tested constant phi. 2014-06-08 20:12:07 +02:00
jos
7dbba81eca Output of matrix multiplication is now consistently squeezed 2014-05-18 15:14:09 +02:00
jos
37f97625c8 Fixed #185: a bug in multiplying two matrices containing vectors (worked fine for arrays) 2014-05-18 14:58:35 +02:00
jos
2f200d7c60 Fixed a bug in multiplying units without value with a number (like 5 * cm). 2014-05-16 20:10:54 +02:00
jos
5ddc735983 Fixed #177: function add not adding strings and matrices element wise 2014-05-05 09:38:52 +02:00
jos
9e0a63386a Fixed #169: Fixed functions log, log10, pow, and sqrt not supporting BigNumbers arguments resulting in complex numbers. 2014-04-24 20:05:52 +02:00
Jos de Jong
b3f898cd25 Merge pull request #165 from rjbaucells/develop
Fixed norm of vector bug when p is equal to zero
2014-04-17 10:48:51 +02:00
Rogelio J. Baucells
4b375d35a3 Fixed norm of vector bug when p is equal to zero 2014-04-16 17:56:01 -04:00
jos
6d4a997ef4 Fixed comparison functions not applying option epsilon 2014-04-16 10:13:11 +02:00
Rogelio J. Baucells
05902e00ff Merge pull request #2 from josdejong/develop
sync
2014-04-14 17:40:43 -04:00
Rogelio J. Baucells
b21688782a fixed formatting and compile problems 2014-04-14 17:16:25 -04:00
Rogelio J. Baucells
5e051cb5e8 fixed build errors 2014-04-14 16:31:40 -04:00
rjbaucells
ca750520d1 fixed build errors 2014-04-13 23:49:45 -04:00
rjbaucells
cf5c405381 formatting fixes 2014-04-13 23:41:07 -04:00
rjbaucells
902c4ac163 unit tests and documentation 2014-04-13 23:30:57 -04:00
rjbaucells
7f2585f1a6 unit tests 2014-04-13 22:19:32 -04:00
rjbaucells
1c6dfac04d norm tests and documentation 2014-04-12 12:38:24 -04:00
Rogelio J. Baucells
ac365c7a9c Initial norm() implementation 2014-04-11 17:45:21 -04: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
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
743c36acbd Floating point numbers equality 2014-04-10 00:00:43 -04:00
josdejong
492d7f4c4f Moved ArgumentsError from lib/type/ to lib/util/ 2014-04-06 21:25:46 +02:00
josdejong
83b41a16ab Implemented BigNumber support for functions exp, log, and log10. 2014-04-06 12:01:10 +02:00
josdejong
45550e5ffb Changed configuration option decimals to precision 2014-04-06 11:14:01 +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
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
763abb425e Implemented function compare 2014-03-29 21:43:22 +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
eca2326802 More unit tests 2014-03-01 21:35:55 +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
36c38982e5 ArgumentsError now extends Error instead of SyntaxError 2014-01-31 23:22:17 +01:00
josdejong
f9446875df Function multiply now consistently outputs a complex number on complex input 2013-11-30 10:08:37 +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