170 Commits

Author SHA1 Message Date
jos
8c032f2593 Replaced all instanceof checks with x && xisMyType === true checks 2015-05-05 15:09:21 +02:00
jos
99e3fd40c4 Introduced event emitter, and events config and import. Renamed loader.js to core.js 2015-05-01 14:03:29 +02:00
jos
de7f84ad3a Name for a factory is now optional. All transform functions do no longer export something to the math namespace 2015-04-28 20:49:35 +02:00
jos
e9e87cd938 Refactored ones and zeros to typed-functions. Created an index.js file for all matrix functions. 2015-04-28 20:14:08 +02:00
jos
365d17e35e Removed shortcut to Array.isArray 2015-04-27 21:00:21 +02:00
jos
811508906c Refactored functions range, subset, concat.transform, map.transform, max.transform, mean.transform, min.transform, range.transform, subset.transform to typed-functions 2015-04-27 19:11:21 +02: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
Max Bruckner
ca4a0bfda4 Change LaTeX output of string function
toTex shouldn't do operations like toString on the node tree
2015-04-27 10:09:42 +02:00
Max Bruckner
8d1d20ba2e Merge branch 'develop' into v2 2015-04-27 09:14:50 +02:00
Max Bruckner
881ff20097 util/array: make flatten not mutate the input (see #309) 2015-04-26 00:03:36 +02:00
Rogelio J. Baucells
748fe0d0fb CcsMatrix refactoring 2015-04-24 11:13:17 -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
c5007d4bf2 Refactored cross, dot, size, squeeze to typed-functions 2015-04-20 21:28:17 +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
9c606c044f latex.toSymbol: get rid of unnecessary curly braces and wire up units 2015-04-19 09:56:40 +02:00
jos
fd050ffae6 Fixed not being able to override lazy loaded constants 2015-04-17 09:44:31 +02:00
Max Bruckner
5780635bb8 util/latex: bugfix: error when handling symbols with indices 2015-04-15 14:03:08 +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
989fcc154b Refactored bitNot, bitOr, bitXor, leftShift, rightArithShift, rightLogShift to typed-functions. 2015-04-13 21:32:48 +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
2076bebdb0 util/latex: Make use of templates based on number of arguments 2015-04-13 00:39:03 +02:00
Max Bruckner
29fd97839f util/latex: Use Template/Callback based on number of arguments 2015-04-13 00:07:56 +02:00
Max Bruckner
240eeecccd lib/util: Move over from callbacks to templates 2015-04-12 23:44:26 +02:00
Max Bruckner
8b5ed85875 util/latex: Get rid of defaultToTex and replace it with defaultTemplate 2015-04-12 13:43:29 +02:00
Max Bruckner
efdf153022 util/latex: Use %% for % in templates 2015-04-12 13:31:09 +02:00
Max Bruckner
14347ed610 util/latex: New template variable for comma separated list of arguments
You can now use '%*%' to get a comma separated list of all arguments
2015-04-12 13:31:06 +02:00
Max Bruckner
34046e22d9 util/latex: Enable templates for LaTeX output of functions.
You can now use templates containing '%name%' and '%0%', '%1%' ...
to define the LaTeX of a function.
2015-04-12 13:30:34 +02:00
Rogelio J. Baucells
fcbf6045cc lup() and lusolve() cleanup 2015-04-09 17:10:01 -04: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
rjbaucells
2d4236b460 Vector - partial 2015-04-08 00:02:29 -04:00
jos
5dfa79196e Some more fixes and improvements in NumberFormatter 2015-04-07 22:16:47 +02:00
jos
2cdeb0d49b Save digits as number instead of string 2015-04-06 21:17:39 +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
e71720aae7 util/latex: LaTeX mapping for every operator 2015-04-05 14:29:15 +02:00
Max Bruckner
671734f215 util/latex: Use function names as keys for map of operators 2015-04-05 14:29:14 +02:00
Max Bruckner
0868987cdf util/latex: use ":=" for assignments and '=' 'equal' 2015-04-05 14:29:14 +02:00
Max Bruckner
3548a4e4b3 util/latex: get rid of latexToFn 2015-04-05 14:29:13 +02:00
Max Bruckner
0772a1fb81 util/latex: Get rid of toUnit ( hasn't been working anyway ) 2015-04-05 14:29:12 +02:00
Max Bruckner
6b1d09f2cb util/latex: new toSymbol 2015-04-05 14:29:12 +02:00
Max Bruckner
e160efbb66 util/latex: get rid of the toOperator function 2015-04-05 14:29:11 +02:00
Max Bruckner
9bc204f393 util/latex: combine symbols into one object
combines greek letters, logic and other symbols insto one object
2015-04-05 14:29:11 +02:00
Max Bruckner
6fbcfa7f63 util/latex: Remove dependencies on Nodes 2015-04-05 14:29:10 +02:00
Max Bruckner
a67fc5f670 util/latex: get rid of more unused stuff 2015-04-05 14:29:09 +02:00
Max Bruckner
5dcb87aeaa util/latex: Remove unused functions
* toArgs
* addBraces
* dots and curly functions

util/latex.js: Remove Function addBraces

util/latex.js remove dots and curly functions
2015-04-05 14:29:09 +02:00
Max Bruckner
241803ccd7 util/latex: Get rid of booleans in Objects containing symbols 2015-04-05 14:29:08 +02:00
Max Bruckner
13e35217b7 Latex restructure 2015-04-05 14:25:54 +02:00