Max Bruckner
a598204fa7
Change template Syntax to ES6 like style
...
Access properties via ${property} and ${property[index]}
2015-06-07 18:49:58 +02:00
Max Bruckner
b3e8aae10c
LaTeX templates for attached toTex properties
2015-06-07 18:47:50 +02:00
Max Bruckner
665df50fc8
FunctionNode: Move latexToFunction to _toTex
2015-06-07 18:47:21 +02:00
Max Bruckner
0402d003dd
Move logic for attached toTex to _toTex
...
This is necessary because otherwise it would overwrite the behavior of a
global callback (passed in `options`).
2015-06-07 18:46:51 +02:00
Max Bruckner
0078cbcb76
Move LaTeX template expansion to FunctionNode
2015-06-07 18:46:20 +02:00
Max Bruckner
40fb34924f
Move function to LaTeX logic from util/latex to FunctionNode
2015-06-07 18:46:14 +02:00
Max Bruckner
bfc3892511
util/latex: expose expandTemplate function for external use
2015-06-07 18:43:47 +02:00
Max Bruckner
2b11b14632
Enable attaching toTex callbacks to functions
2015-06-07 18:41:25 +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
Kunal Vyas
44175b5c5b
changed indentation from 4 to 2 space
2015-06-04 19:44:01 -04:00
jos
55288ffe5a
The size of Arrays is no longer validated. Matrices will validate this on creation (still needs to be done for SparseMatrix).
2015-05-31 20:28:46 +02:00
jos
22dd649b8b
bunped version number to 1.7.1-SNAPSHOT
2015-05-31 14:40:53 +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
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