128 Commits

Author SHA1 Message Date
jos
88263c47c7 Woohoo fixed the last lint errors 2018-06-13 21:51:09 +02:00
jos
4254b7413f Dropped support for (non-primitive) instances of Number, Boolean, and String from functions clone and typeof 2018-06-13 17:56:18 +02:00
jos
600cfb403a Fix return statement should not contain assignment 2018-06-13 17:37:27 +02:00
jos
0583771e4e Cleanup unused variables and imports 2018-06-13 17:25:51 +02:00
jos
1f0a37a0cb Split initialized 'const' declarations into multiple statements 2018-06-13 15:31:37 +02:00
jos
17f07ec098 Fixed incompatibility with v4 (index.js file) 2018-06-13 14:02:50 +02:00
jos
b3b96749bf Refactored var into const/let, and removed a lot of semicolons 2018-06-13 12:21:14 +02:00
jos
c2777c856b Fixed linting issues "Unexpected template string expression" 2018-06-12 21:18:45 +02:00
jos
024b2a9e26 Fix most lint errors using npx standard --fix 2018-06-10 20:28:27 +02:00
jos
635cd0b574 Revert using /lib/ in tests, use /src/ again. Fixed coverage testing. WIP 2018-06-06 22:11:52 +02:00
jos
79071b5e4f Fixed npm run test:browser not working (WIP) 2018-06-06 21:30:41 +02:00
jos
0c084b8e20 npm test working now 2018-06-06 15:36:36 +02:00
jos
82eec1078e Fixed #1016: Extended math.typeof with support for ResultSet and nodes like SymbolNode 2018-04-04 11:24:45 +02:00
jos
02d7d592e4 Merged util function types.type into math.typeof (see #1023) 2018-01-25 20:21:22 +01:00
jos
83e3591925 Fixed #930: function isNaN returning wrong result for complex numbers 2017-08-21 20:20:49 +02:00
MathBunny
160b8b7d1f Add tests for isPrime 2016-07-21 20:24:59 -04:00
Max Bruckner
c1760298fb New function 'isNaN' 2016-06-20 20:24:26 +02:00
jos
e2a3878ba9 Moved functions format and print to section string 2016-03-03 20:17:41 +01:00
john marinelli
60db5423ce remove only from format test 2015-12-25 00:58:12 -08:00
john marinelli
4fa19f3adc made algorithm clearer 2015-12-23 12:20:22 -08:00
john marinelli
86ce0de7ed remove describe.only from test file 2015-12-20 16:39:20 -08:00
john marinelli
47c152d4a3 all tests run 2015-12-20 16:30:18 -08:00
john marinelli
ce1f5c7c60 integers 2015-12-20 16:01:19 -08:00
john marinelli
37361b900e write tests 2015-12-18 20:23:10 -08:00
john marinelli
2e1bbd14e5 initial commit 2015-12-18 18:57:27 -08:00
jos
c1a279c293 Added unit test for math.clone(Fraction) 2015-07-18 09:56:04 +02:00
jos
955dd2c392 Implemented util function isNegative 2015-06-07 22:10:45 +02:00
jos
4bc087fa35 Implemented function isPositive and some refinements 2015-06-07 22:06:03 +02:00
jos
4d37ca2364 Removed support for complex, unit, and string from isInteger, and removed support for string from isZero 2015-06-07 21:43:55 +02:00
jos
eab7b7fdd5 Implemented util function isNumeric 2015-06-07 21:35:05 +02:00
jos
5589527f24 Implemented util function isZero 2015-06-07 21:25:53 +02:00
jos
e249b17c61 Implemented util function isInteger 2015-06-07 21:16:50 +02:00
jos
b7b4669935 Conversions after merging develop into v2 2015-06-07 15:57:58 +02:00
jos
a92b978036 Merged develop into v2 2015-06-07 15:57:41 +02:00
jos
3a1dea00b0 Function typeof no longer returns lower case names, but now returns lower case names for primitives (like number, boolean, string), and upper-camel-case for non-primitives (like Array, Complex, Function). 2015-05-22 21:05:35 +02:00
Favian Contreras
9df7ee1701 Implemented a partition-based selection function, which uses the quickselect algorithm. Tests as well. 2015-05-15 02:37:13 -07:00
jos
7e3eda8603 Moved all data types and their construction functions into a folder of their own under ./lib/type 2015-05-05 13:51:24 +02:00
jos
052c6109af Moved related functions to ./lib/core 2015-05-05 11:49:39 +02:00
jos
18d9b8942e Dropped support for module names from function import 2015-05-01 23:00:58 +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
dc54b157b0 Removed redundant UnsupportedTypeError 2015-04-28 20:20:48 +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
jos
7a37c777e4 Created index.js files for most groups of functions so you can import a all functions with a single action 2015-04-26 20:28:47 +02: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
Max Bruckner
8ad525b66e util/latex: get rid of many unnecessary curly braces 2015-04-19 11:08:00 +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
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
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
jos
466c6a03e8 Added support for booleans and null in function import 2015-03-26 21:46:57 +01:00