218 Commits

Author SHA1 Message Date
Eric
dfbc575bc1 Added electrical units and unit tests 2015-08-06 12:50:48 +00:00
Eric
f5d166a809 Made an attempt at derived units with simplification
Updated unit tests
Updated examples
Updated docs
2015-08-04 05:26:00 +00:00
Eric
0a1c8446a5 Added a few more unit tests 2015-08-01 20:58:08 +00:00
Eric
7ce39f1084 Finished upgrades to unit type. Adjusted several unit tests. 2015-08-01 18:35:46 +00:00
Ubuntu
f583855261 First attempt at derived units. Updated unit tests and examples. 2015-07-25 18:48:04 +00:00
jos
ec2da034a2 Halfway implementing lazy loading 2015-07-22 20:37:34 +02:00
jos
8158dafd3d Moved the trigonometric functions in util/bignumber.js into separate files 2015-07-18 20:37:32 +02:00
jos
9d5799f5ca Extended memoize with support for a custom hasher. 2015-07-18 13:41:06 +02:00
jos
2353c4a61e Renamed folders util to utils 2015-07-18 13:22:38 +02:00
jos
57a47b3b5a Moved pure collection functions to lib/util/collection 2015-07-18 12:53:07 +02:00
jos
7615513a14 Moved the BigNumber format functions into separate files 2015-07-18 12:49:53 +02:00
jos
493f34ec7b Split collection.js into separate (pure) functions 2015-07-18 11:47:38 +02:00
jos
d6cc806f9a Created methods Matrix.create for all DenseMatrix and SparseMatrix 2015-07-12 20:33:43 +02:00
jos
e249b17c61 Implemented util function isInteger 2015-06-07 21:16:50 +02: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
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
148d3accad Range.map() and forEach() tests 2015-05-21 13:45: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
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
rjbaucells
86314047ac Set tests 2015-05-13 21:05:01 -04:00
rjbaucells
6f8fca77cb tests - final 2015-05-13 20:29:43 -04:00
Rogelio J. Baucells
7e5980c812 tests - partial 2015-05-13 17:24:38 -04:00
Rogelio J. Baucells
9fe3395d7f tests - partial 2015-05-13 15:26:15 -04:00
rjbaucells
464c4c5434 tests - partial 2015-05-12 22:31:23 -04:00
rjbaucells
83e090d015 tests - partial 2015-05-12 22:07:55 -04:00
rjbaucells
e9d4fd9e8b tests - partial 2015-05-12 21:21:57 -04:00
rjbaucells
dce3aeee5b tests - partial 2015-05-12 20:51:43 -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
4367259254 Implemented toJSON and fromJSON for Fraction 2015-05-12 20:42:52 +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
jos
73f2dc2601 Implemented Fraction (using library fraction.js) for add, subtract, multiply, divide. 2015-05-12 11:42:57 +02:00
Rogelio J. Baucells
b7e04cb5b8 datatype optimizations - partial 2015-05-09 11:04:44 -04:00
jos
3242cd8550 Attached properties like.type === 'Complex' and .isComple to all data types 2015-05-05 14:35:45 +02:00
jos
320378543f Moved the primitive types to ./lib/type again (not in a subfolder primitive) 2015-05-05 14:04:23 +02:00
jos
b32b89f94c Moved help/docs related stuff to ./lib/expression 2015-05-05 14:01:38 +02: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
758107428c Moved collection.js and Matrix.js under ./lib/type/matrix, moved construction functions matrix.js and sparse.js to ./lib/type/matrix/function, and created an index file. 2015-05-05 12:00:07 +02:00
Jos de Jong
cd6f6df393 Merge pull request #346 from rjbaucells/sparse-arithmetic
Sparse arithmetic updates
2015-05-05 11:04:18 +02:00
Rogelio J. Baucells
1b3cf30e98 Fixed performance problems with array 2015-05-05 01:25:15 -04:00
jos
0ccb0bce4c Refactored Chain, decoupled from import 2015-05-01 16:23:04 +02:00
jos
99e3fd40c4 Introduced event emitter, and events config and import. Renamed loader.js to core.js 2015-05-01 14:03:29 +02:00
rjbaucells
aa746f051f Merge branch 'v2' of https://github.com/josdejong/mathjs into josdejong-v2
Conflicts:
	lib/type/matrix/DenseMatrix.js
	lib/type/matrix/SparseMatrix.js
2015-04-30 21:02:27 -04:00
jos
e348cb70a2 Refactored Range and Index. Reorganized index.js 2015-04-30 20:36:45 +02:00
rjbaucells
76ac065d63 Merge branch 'v2' of https://github.com/josdejong/mathjs into josdejong-v2
Conflicts:
	lib/expression/docs/index.js
2015-04-29 00:05:18 -04:00
rjbaucells
2512b74b85 Matrix datatype 2015-04-28 20:11:32 -04:00
jos
1204259209 Refactored Complex and Unit into factory functions 2015-04-28 22:04:42 +02:00
jos
e5e2625838 Enclosed ResultSet in a factory function 2015-04-28 21:40:35 +02:00
jos
106c5969de Refactored Help into a factory function 2015-04-28 20:37:14 +02:00
Rogelio J. Baucells
8047a4853f multiply() - poc 2015-04-28 12:07:02 -04:00