170 Commits

Author SHA1 Message Date
jos
ec3ad5461f Added Fraction support for cube and square. Fixed operations on Fractions mutating the original fraction. 2015-05-12 21:26:51 +02:00
jos
4766546748 Added fraction support for functions ceil, fix, floor, round 2015-05-12 20:26:42 +02:00
jos
44b2129740 Added Fraction support for abs, gcd, mod. Added a valueOf() method to Fraction 2015-05-12 13:25:05 +02:00
jos
73f2dc2601 Implemented Fraction (using library fraction.js) for add, subtract, multiply, divide. 2015-05-12 11:42:57 +02:00
jos
868b2702b5 Updated to typed-function v0.8, creating a new instance of typed-function for each instance of math.js. Better error messages and new utility functions typed.convert and typed.find. 2015-05-09 14:53:36 +02:00
Rogelio J. Baucells
92d270ca31 Test for algorithm04 bug 2015-05-05 17:16:24 -04:00
rjbaucells
769eebadb7 nthRoot 2015-05-02 19:46:38 -04:00
Rogelio J. Baucells
6a5af8731e element wise operations 2015-05-01 16:53:55 -04:00
rjbaucells
c8221c8954 tests 2015-04-30 20:33:02 -04:00
rjbaucells
b7ea83e0f2 element wise operations 2015-04-30 20:17:24 -04:00
Rogelio J. Baucells
4ab8a7e248 element wise operations 2015-04-30 17:51:04 -04:00
rjbaucells
6884de9803 test updates 2015-04-30 00:52:25 -04:00
rjbaucells
21a5dd34c1 element wise operations 2015-04-30 00:09:30 -04:00
rjbaucells
66e6daaa70 element wise operations 2015-04-29 21:09:57 -04:00
Rogelio J. Baucells
5aff896e00 element wise operations 2015-04-29 17:54:17 -04:00
rjbaucells
76ac065d63 Merge branch 'v2' of https://github.com/josdejong/mathjs into josdejong-v2
Conflicts:
	lib/expression/docs/index.js
2015-04-29 00:05:18 -04:00
rjbaucells
2512b74b85 Matrix datatype 2015-04-28 20:11:32 -04:00
rjbaucells
69b44f52e6 Typed SparseMatrix 2015-04-27 20:57:37 -04:00
Rogelio J. Baucells
d535bc9aaf SparseMatrix pattern 2015-04-27 16:58:47 -04:00
Rogelio J. Baucells
4347a3d16f sparse arithmetic updates 2015-04-27 12:03:59 -04:00
Max Bruckner
e62ab0dae4 Proper toTex for units and symbols.
Symbols now don't use `\mathrm` anymore by default, but units do.
2015-04-27 11:08:31 +02:00
Rogelio J. Baucells
90be2957aa add() - partial 2015-04-26 00:01:31 -04:00
Rogelio J. Baucells
748fe0d0fb CcsMatrix refactoring 2015-04-24 11:13:17 -04:00
rjbaucells
3abb15d375 test comments 2015-04-22 20:23:23 -04:00
rjbaucells
0a7fe85e01 multiply() tests 2015-04-22 20:06:45 -04:00
rjbaucells
319a4975a9 Revert "multiply() tests"
This reverts commit 961a15ae778829bf176e1c80e02b22831ec7a7e5.
2015-04-22 20:04:12 -04:00
rjbaucells
961a15ae77 multiply() tests 2015-04-22 20:04:02 -04:00
rjbaucells
a2d2e24e76 multiply() refactoring 2015-04-22 19:46:35 -04:00
jos
6e96d5a808 Merge branch 'develop' into v2
Conflicts:
	HISTORY.md
	bower.json
	component.json
	dist/math.js
	dist/math.map
	dist/math.min.js
	lib/function/arithmetic/abs.js
	lib/function/probability/gamma.js
	lib/version.js
	package.json
2015-04-22 21:43:56 +02:00
jos
084c28c3f9 Minor improvement in abs (see #330) 2015-04-22 21:03:11 +02:00
Max Bruckner
7435e91529 Fix Bug #328 abs(0+0i) evaluates to NaN
This is a quick fix. This might need a better solution though (
numerical instabilities still remain ).
2015-04-22 14:36:24 +02:00
Max Bruckner
8ad525b66e util/latex: get rid of many unnecessary curly braces 2015-04-19 11:08:00 +02:00
Max Bruckner
efdc0ac6be latex: remove unnecessary curly braces in static lists 2015-04-19 10:12:38 +02:00
Max Bruckner
55a66aeaaf OperatorNode.toTex: get rid of unnecessary curly braces 2015-04-19 09:49:09 +02:00
jos
349e9845e8 Merge branch 'develop' into v2_merge
Conflicts:
	HISTORY.md
	bower.json
	component.json
	dist/math.js
	dist/math.map
	dist/math.min.js
	docs/reference/units.md
	lib/version.js
	package.json
	test/function/construction/chain.test.js
	test/function/matrix/det.test.js
	test/function/matrix/transpose.test.js
	test/function/utils/import.test.js
2015-04-13 21:42:43 +02:00
jos
567a212833 Merge remote-tracking branch 'origin/v2' into v2 2015-04-13 09:52:11 +02:00
Jos de Jong
bc6f63b6c9 Merge pull request #318 from FSMaxB/latex-restructure
Restructure and complete the LaTeX generator.
2015-04-13 09:39:16 +02:00
Max Bruckner
240eeecccd lib/util: Move over from callbacks to templates 2015-04-12 23:44:26 +02:00
jos
8df0cf50f8 Merge branch 'develop' into v2_merge
Conflicts:
	HISTORY.md
	bower.json
	component.json
	dist/math.js
	dist/math.map
	dist/math.min.js
	lib/function/arithmetic/round.js
	lib/version.js
	package.json
2015-04-08 09:45:11 +02:00
jos
f773df0fc6 Fixed #317 (formatting negative values), fixed #316 (round-off errors in formatting values) 2015-04-06 21:08:21 +02:00
Max Bruckner
9acccce315 util/latex: change comments 2015-04-05 14:29:16 +02:00
Max Bruckner
92c27301ba util/latex: use map of operators in LaTeX conversion of functions 2015-04-05 14:29:16 +02:00
Max Bruckner
6b1d09f2cb util/latex: new toSymbol 2015-04-05 14:29:12 +02:00
Max Bruckner
7adf0ebc53 LaTeX tests for functions 2015-04-05 14:29:10 +02:00
rjbaucells
e5e38b04e5 sparse matrix optimizations 2015-04-01 00:58:07 -04:00
jos
8a68bb56e4 Merged math.js v1.5 into v2. Format support of functions eye and diag still needs to be fixed 2015-03-31 22:07:47 +02:00
Rogelio J. Baucells
6e0d9bbd59 norm() tests 2015-03-23 10:13:03 -04:00
Rogelio J. Baucells
b81187147e Merge pull request #24 from rjbaucells/CCS
Sparse Matrix implementation
2015-03-23 00:30:42 -04:00
jos
d4a457f5c9 Refactored norm, nthRoot, round, diag, transpose to typed-functions. 2015-03-22 15:34:59 +01:00
Rogelio J. Baucells
849386ff24 DenseMatrix multiply(), partial 2015-03-20 17:57:43 -04:00