598 Commits

Author SHA1 Message Date
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
2d84debd6c Added/updated missing docs 2015-05-31 14:29:42 +02:00
jos
82ed4ca497 Fixed #381: issue in docs of randomInt (see also #382) 2015-05-31 14:01:59 +02: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
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
Devan Patel
51144f3220 Fixing BellNumbers and StirlingS2 for isPositiveInteger 2015-05-25 14:29:19 -04:00
Devan Patel
57619c51ef Fixing mutlinomial for isPositiveInteger 2015-05-25 14:24:21 -04: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
Rogelio J. Baucells
9b6a9c2298 Range.forEach() and map() API changes
Range.forEach() and map() API change to match Matrix
2015-05-21 13:17:17 -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
jos
6c7bf4acf0 Removed boolean, string, and null from the list with argument types, only leaving the directly supported types (which types can be converted to supported types is determined externally). Consistently renamed primitive types lower case (boolean, string, number, null) and non-primitive types uppercase (Complex, BigNumber, Function, Array, ...). 2015-05-20 21:08:26 +02:00
jos
166d3aa0be Removed boolean, string, and null from the list with argument types, only leaving the directly supported types (which types can be converted to supported types is determined externally). 2015-05-20 20:49:19 +02:00
jos
be98cf613d Updated docs of add to reflect changed behavior for strings 2015-05-20 19:59:43 +02: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
Favian Contreras
1b9ace802e Cleaned up median by removing flat variable. Added test case with multiple empty lists (where simply taking the length of a non-flattened list would fail). 2015-05-18 13:20:51 -07: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
090c9e8ae8 Upgraded to typed-function 0.9.0, resolving nondeterministic ordering of types. Solved performance issues with add, divide, and multiply. 2015-05-17 20:45:32 +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
7c68055c09 Replaced the sort in median and quantileSeq with a partition-based selection function. Also removed the flatted call in median for a sequence (still needed for an Array or Matrix input). 2015-05-16 01:09:12 -07: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
rjbaucells
b5931fb116 solvers 2015-05-14 23:04:59 -04:00
rjbaucells
ceca6af8d3 slu() and lusolve() 2015-05-14 20:24:26 -04:00
jos
55d8e4f323 Minor code tweaks 2015-05-14 20:18:15 +02:00
Favian Contreras
fbfbd030d1 Removed the ability to insert data as a series of scalar values. Consolidated sorted and normal cases into 1 file. Added ability to use a list of probabilities, or an integer as a number of would be evenly spaced probabilities. 2015-05-14 08:06:38 -07:00
Rogelio J. Baucells
7e5980c812 tests - partial 2015-05-13 17:24:38 -04:00
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
b831ad2b72 Added support for fractions to function math.format (including output option fraction='decimal' | 'ratio') 2015-05-12 19:43:11 +02:00
jos
a0ad13b9e0 Added support for Fraction in functions compare, equal, larger, largerEq, smaller, smallerEq, unequal. 2015-05-12 13:46:50 +02:00
jos
fca1b8c98c Replaced ugly structure new x.constructor(...) with new type.BigNumber(...) and new type.Complex(...) 2015-05-12 13:29:23 +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
Favian Contreras
ae3267d5b8 Basic quantile implementation and tests (see issues #305 and #354). There is also an implementation that assumes the input is sorted in ascending order, to maintain an O(1) runtime. 2015-05-12 03:04:51 -07:00
jos
73f2dc2601 Implemented Fraction (using library fraction.js) for add, subtract, multiply, divide. 2015-05-12 11:42:57 +02:00
rjbaucells
5ef0a6d9a0 removed file 2015-05-11 22:28:08 -04:00
rjbaucells
6c6b22a647 permute() - partial 2015-05-11 00:08:21 -04:00
rjbaucells
a432b732ef Merge remote-tracking branch 'origin/v2-test' into v2-sparse 2015-05-10 12:17:37 -04:00
rjbaucells
e33fdad4ec typed-function 0.8.2 updates 2015-05-10 12:16:23 -04:00
rjbaucells
d3902a2fcf lusolve() - partial 2015-05-09 11:21:23 -04:00
jos
04f09c52c3 Merge remote-tracking branch 'origin/v2' into v2 2015-05-09 14:53:42 +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