1601 Commits

Author SHA1 Message Date
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
c810981238 Method Node.compile() no longer needs math to be passed as argument. 2015-05-27 13:30:35 +02:00
Kunal Vyas
d2230e519c Added intersection function
Computes:
- Line and line intersection in 2D and 3D
- Line and plane intersection in 3D
2015-05-26 03:28:58 -04: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
96a9805ee8 v2-sync 2015-05-21 00:40: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
fedae8e386 Set removal 2015-05-20 18:16:17 -04:00
Rogelio J. Baucells
7579412f7d Index dimension with immutable matrix 2015-05-20 17:41:03 -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 de Jong
2471c6690d Merge pull request #375 from devanp92/patch-1
Adding Utility isPositiveInteger function + test
2015-05-20 20:15:05 +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
Devan Patel
b09844cbe4 Removing from number.js 2015-05-19 08:55:23 -04:00
Devan Patel
b8a315c6b6 Moving isPositiveInteger to bignumber 2015-05-19 08:52:41 -04: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
Devan Patel
06404ed44b Merge branch 'master' of github.com:devanp92/mathjs
# Conflicts:
#	dist/math.js
#	dist/math.map
#	dist/math.min.js
2015-05-18 11:26:19 -04:00
Devan Patel
66d2fcddcd Adding utility IsPositiveInteger 2015-05-18 11:11:19 -04: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 de Jong
06e36f79d2 Merge pull request #364 from FSMaxB/callbacks
Pass configuration to `toTex` and `toString` and callbacks for `toString`
2015-05-17 20:56:23 +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
Devan Patel
9e83261a68 Adding utility function 'isPositiveInteger' in number.js 2015-05-16 09:30:35 -04:00
Max Bruckner
5b160767c1 operators.js: Pass parenthesis option directly 2015-05-16 13:31:57 +02:00
Max Bruckner
a893307831 Remove global "parenthesis" configuration option 2015-05-16 13:30:56 +02:00
Max Bruckner
3f217cefdd toTex: no global configuration. Only pass around one local object 2015-05-16 13:30:25 +02:00
Max Bruckner
c0e1b2d268 toString: no global configuration. Only pass around one local object 2015-05-16 13:29:55 +02:00
Max Bruckner
a347405a98 toString: implement callbacks and local configuration 2015-05-16 13:28:51 +02:00
Max Bruckner
fc53fbd2a4 util/latex.js: remove unused function 2015-05-16 13:28:01 +02:00
Max Bruckner
291d620972 Pass local configuration to toTex functions 2015-05-16 13:27:48 +02:00
Max Bruckner
e383c1c2ce Throw errors when trying to toTex/toString a Node interface 2015-05-16 13:21:39 +02:00
Max Bruckner
4159064a33 Node.toTex: remove dependency on FunctionNode
This is achieved by overriding parts of Node.toTex in FunctionNode.toTex
2015-05-16 13:21:38 +02:00
jos
096a5f3a55 Upgraded to typed-function v0.8.3. Implemented support for merging typed-functions via math.import. Added option silent for math.import. 2015-05-16 11:33:58 +02: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
jos
e6cbc8a346 Upgraded to fraction.js v1.9.0 2015-05-15 22:20: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
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