325 Commits

Author SHA1 Message Date
jos
7e40d0a464 Added docs for physical constants in expression parser help 2015-08-11 21:02:25 +02:00
jos
189d8e4918 Internal functions Unit.parse and Complex.parse now throw an Error instead of returning null when passing invalid input 2015-08-10 21:45:48 +02:00
Jos de Jong
af0b0960c0 Merge pull request #425 from ericman314/unit-parse-parentheses
Added support for parentheses to Unit.parse
2015-08-09 23:12:09 +02:00
jos
9215622642 Removed constant definition of atm (duplicate with the atm unit) 2015-08-09 23:10:32 +02:00
jos
b67004dce9 Implemented physical constants like gravity, speedOfLight, etc 2015-08-09 22:50:58 +02:00
Eric
37870fcc0d Added support for parentheses to Unit.parse 2015-08-09 20:42:05 +00:00
jos
067a628bc3 Changed Unit.parse such that implicit multiplication has the same precedence as division 2015-08-09 15:27:56 +02:00
Eric
96aca3a7bb _bestPrefix now chooses shortest prefix when prefix values are the same 2015-08-07 13:17:23 +00:00
Eric
5e7a584ab1 Removed UPPERCASE OMEGA character (breaks browsers) 2015-08-07 03:56:13 +00:00
Eric
23044e29ca Updated more docs
Fixed tabs
2015-08-06 13:47:01 +00:00
Eric
4f6cc1254b Updated docs and examples 2015-08-06 13:34:12 +00:00
Eric
dfbc575bc1 Added electrical units and unit tests 2015-08-06 12:50:48 +00:00
jos
a94f0c6c5e Merge branch 'feature-derived-units' of https://github.com/ericman314/mathjs into ericman314-feature-derived-units
Conflicts:
	examples/units.js
2015-08-05 21:04:53 +02: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
Eric
4c1f160e10 Mostly done but now everything's broken. 2015-07-30 05:38:18 +00:00
Eric
a4974134a4 Halfway done working on the dimensions array approach for units,
but running into trouble with formatting. May have to change
many things to get it to work.
2015-07-30 03:03:39 +00:00
Eric
f689a00edb Made a few notes 2015-07-29 03:23:51 +00:00
jos
ddb707e9b8 Updated some more docs, examples, history 2015-07-28 09:51:31 +02:00
Ubuntu
f583855261 First attempt at derived units. Updated unit tests and examples. 2015-07-25 18:48:04 +00:00
Ubuntu
9ae8ea36df Just committing so I can checkout master again to revert a few lines. 2015-07-25 03:33:07 +00:00
jos
ec2da034a2 Halfway implementing lazy loading 2015-07-22 20:37:34 +02:00
jos
396d951c95 Halfway implementing lazy loading 2015-07-21 20:49:52 +02:00
jos
8158dafd3d Moved the trigonometric functions in util/bignumber.js into separate files 2015-07-18 20:37:32 +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
5e4ed8c1c7 Splitted the bignumber bitwise functions into separate files 2015-07-18 12:25:11 +02:00
jos
c7651def20 Minor refactoring 2015-07-18 12:01:22 +02:00
jos
493f34ec7b Split collection.js into separate (pure) functions 2015-07-18 11:47:38 +02:00
jos
6c592fa67c Added an example custom_loading.js 2015-07-14 21:13:00 +02:00
jos
d6cc806f9a Created methods Matrix.create for all DenseMatrix and SparseMatrix 2015-07-12 20:33:43 +02:00
jos
658990a49b Moved Range and Index under lib/type/matrix. Renamed the file Index.js to MatrixIndex.js to prevent name conflicts on Windows. Added an index.js file in lib/function 2015-07-12 20:21:27 +02:00
jos
0475924551 Use addScalar instead of add where possible 2015-07-11 16:38:36 +02:00
Max Bruckner
5f8b2559c3 Remove LaTeX of construction functions from util/latex.js 2015-06-14 20:08:19 +02:00
jos
052b6cf4ed Some minor restructuring in the docs. Moved command line debugging to the page command line interface. 2015-06-12 19:40:41 +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
d927b08945 Merge remote-tracking branch 'origin/v2-Index' into v2-sparse 2015-05-22 15:25:21 -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
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
jos
e6cbc8a346 Upgraded to fraction.js v1.9.0 2015-05-15 22:20:35 +02:00
rjbaucells
86314047ac Set tests 2015-05-13 21:05:01 -04:00