662 Commits

Author SHA1 Message Date
Favian Contreras
48bb64af4e Added some comments to the derivative file. Added some test cases as well (explicitly test partial derivatives and pure JS usage). 2015-09-19 21:24:56 -07:00
jos
a39d726a18 Merged algebraic_differentiation, fixed issues with function transforms attached to factory functions 2015-07-29 21:24:34 +02:00
jos
a388f399ca Merge branch 'algebraic_differentiation' of https://github.com/BigFav/mathjs into algebraic_differentiation
Conflicts:
	lib/core/typed.js
2015-07-29 20:57:50 +02:00
jos
d15751b041 Fixed operations with mixed fractions and numbers be converted to numbers instead of fractions. 2015-07-28 20:48:55 +02:00
Favian Contreras
98040be7e1 Shortened up some of the more verbose test cases for which simplifications are possible. Used config.number on ConstantNodes that I missed on my original commits. 2015-07-25 07:29:17 -07:00
jos
2810c18178 Merge branch 'develop' into feature_lazyloading 2015-07-21 21:06:49 +02:00
jos
34348d8483 Merge remote-tracking branch 'origin/v2' into develop 2015-07-21 20:51:39 +02:00
Ganga Christopher
12514a7bc4 calculating root of complex numbers using De Moviers, returns array of n complex roots in polar form 2015-07-21 17:10:49 -07:00
jos
396d951c95 Halfway implementing lazy loading 2015-07-21 20:49:52 +02:00
Favian Contreras
6fbe2238cd Added a test case for nthRoot where the root is variable. Now handles a variable base log, and added a test case. Adjusted the chain rule to be after the switch statement (saves ~1640 bytes and is more modular). 2015-07-21 04:34:06 -07:00
jos
2353c4a61e Renamed folders util to utils 2015-07-18 13:22:38 +02:00
jos
2d42218c7f Removed isPositiveInteger from util/bignumber.js. Added some unit tests 2015-07-18 11:07:41 +02:00
jos
c1a279c293 Added unit test for math.clone(Fraction) 2015-07-18 09:56:04 +02:00
jos
91b56e117a Added support for strings in function concat 2015-06-17 20:26:44 +02:00
jos
f70dcd5d48 Added one more test 2015-06-17 20:11:03 +02:00
jos
b3c7169493 Fixed #397: Inaccuracies in nthRoot for very large values, and wrong results for very small values. 2015-06-17 20:06:13 +02:00
Favian Contreras
3591b7597d Added test cases for trig functions, C^x, FunctionAssignmentNode, and some error cases. 2015-06-13 09:42:40 -07: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
3cf7d2c309 Conversions to v2 2015-06-07 16:53:40 +02:00
jos
1fe4dc899d Merged latest develop to v2 2015-06-07 16:53:24 +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 de Jong
2705fd7bac Merge pull request #380 from kv-kunalvyas/develop
Added intersection function
2015-06-07 13:57:38 +02:00
Kunal Vyas
58cfb20ffd Wrote unit tests
- Added intersect.js file in lib/expression/docs
- added an entry in the index.js file in expression/docs
- modified intersect.js to give appropriate error messages
- added an entry in lib/math.js so that the test case file could find
the function
- wrote the test cases for intersect
2015-06-06 22:44:32 -04:00
jos
7347591535 Upgraded to fraction.js v2.0.0, added fraction support for pow (integer exponents only) 2015-05-31 12:21:24 +02:00
Favian Contreras
d800172062 Test derivitive function. Currently using a mix of written out Nodes, and parse to test against. 2015-05-31 02:50:14 -07:00
Rogelio J. Baucells
8fb42ee11b fix tests 2015-05-29 21:34:29 -04:00
Rogelio J. Baucells
9eaafcbc5c Merge branch 'josdejong/v2' into v2-sparse 2015-05-29 21:20:09 -04:00
jos
5762132822 Removed premature stuff on Permutation (see#362), and removed dependency on underscore. 2015-05-27 13:52:14 +02:00
jos
00a51a0fa1 Merge branch 'Multinomial' of https://github.com/devanp92/mathjs into devanp92-Multinomial
Conflicts:
	HISTORY.md
	lib/util/number.js
2015-05-27 13:37:31 +02:00
jos
0eb9b5b119 Implemented a new configuration option predictable, which can be set to true in order to ensure predictable function output types. 2015-05-23 21:00:08 +02:00
Rogelio J. Baucells
d927b08945 Merge remote-tracking branch 'origin/v2-Index' into v2-sparse 2015-05-22 15:25:21 -04:00
Jos de Jong
3e6445a6d0 Merge pull request #368 from rjbaucells/v2-Index
Extend Index implementation to support set of values
2015-05-22 21:13:21 +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
Devan Patel
88a8f4712b Merge branch 'master' of github.com:devanp92/mathjs into Multinomial 2015-05-21 21:50:20 -04:00
Devan Patel
39acbdd558 Remove skipped test 2015-05-21 14:44:10 -04:00
Rogelio J. Baucells
f2a179aa31 Merge branch 'josdejong/v2' into v2-Index
Conflicts:
	lib/core/typed.js
	lib/type/index/prototype/Index.js
2015-05-21 00:38:58 -04:00
Rogelio J. Baucells
7579412f7d Index dimension with immutable matrix 2015-05-20 17:41:03 -04:00
jos
d81fe279cc String input is now converted to numbers by default for all functions. Adding two strings will no longer concatenate them, but will convert the
strings to numbers and add them.
2015-05-19 22:18:40 +02:00
Max Bruckner
b50ed45c06 Use number configuration for return type of sum with empty array 2015-05-18 14:08:15 +02:00
Max Bruckner
1ef8f2986e sum: Fix #369 return 0 for empty array 2015-05-17 21:18:14 +02:00
jos
e055828205 Minor tweaks 2015-05-17 17:00:20 +02:00
rjbaucells
ce95f7a837 lusolve() and slu() tests 2015-05-17 10:34:15 -04:00
rjbaucells
027462b081 slu() and lusolve() 2015-05-16 11:50:34 -04: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