363 Commits

Author SHA1 Message Date
Jos de Jong
37df69d58c Merge pull request #522 from owenversteeg/patch-1
Add time units (Issue #520)
2015-12-25 19:49:54 +01:00
Jos de Jong
c3ccdd6800 Fixed #523: In some circumstances, matrix subset returned a scalar instead of the correct subset 2015-12-24 16:03:39 +00:00
Jos de Jong
02a2bbe9fb Merge pull request #515 from ericman314/complex-units
Added support for complex units
2015-12-24 16:11:15 +01:00
Eric
a14b8b7a68 Added VA, VAR, and custom logic to convert between them. 2015-12-24 05:45:13 +00:00
Owen Versteeg
04a735b844 add time units 2015-12-22 12:46:33 -05:00
David Simons
cca8cd82bd Add hertz (without changes to diff) 2015-12-03 20:43:57 +00:00
David Simons
12dc0c2f62 Revert "Add Hertz unit"
This reverts commit d2ad436c83294ee56a0e0cac7e68d1f74d864d3b.
2015-12-03 20:42:06 +00:00
David Simons
d2ad436c83 Add Hertz unit 2015-12-03 20:38:56 +00:00
Eric
34f991949d Added support for complex units 2015-11-28 20:09:22 +00:00
jos
75b216930b Removed unused function 2015-11-28 15:14:49 +01:00
jos
afb982557a Fixed error message 2015-11-28 15:13:29 +01:00
jos
d10309cf73 Moved all aliases into the map ALIASES 2015-11-28 15:10:24 +01:00
jos
148e9d7542 Fixed dealing with Fractions and BigNumbers in Unit._normalize and Unit._denormalize. 2015-11-28 15:04:01 +01:00
jos
5adbe0a055 Extended Unit with support for all numeric types (Fraction, BigNumber) 2015-11-27 22:45:27 +01:00
jos
fa86d87e44 Fixed function number not supporting Fraction input 2015-11-27 21:44:07 +01:00
devdevdata222
82d1057128 Restore original aliases
Need the hard-coded aliases at the end, presumably; I had tried to remove them and incorporate them in ALIASES, did not work.
2015-11-16 15:09:52 -05:00
devdevdata222
b7e91952a1 Fix alias definitions
The hard-coded aliases needed to be matched to specific units in ALIASES.
2015-11-16 14:42:42 -05:00
devdevdata222
f2843a65e6 Forgot alias l -> litre
In moving the hard-coded aliases to the aliases array I forgot to set l -> base unit defined by name 'litre'.
2015-11-16 14:19:59 -05:00
devdevdata222
0851ffc28c Fix alias for lbs
Incorrectly transferred lbs alias.
2015-11-16 14:10:15 -05:00
devdevdata222
9484e05698 PLURALS -> ALIASES, add arcmin, arcsec
Change PLURALS to ALIASES, clean up manual aliases. Add new angle units arcmin and arcsec, along with appropriate aliases.
2015-11-16 14:04:57 -05:00
jos
526c1ddfc8 Fixed #503: Removed trailing commas and the use of keyword import as
property, as this gives issues with old JavaScript engines
2015-11-13 21:10:00 +01:00
Ben Nelson
1a9f7bf2bc Fix a small bug with new types.SparseMatrix() 2015-10-25 14:40:48 -04:00
Eric
aeb9eb2d7d Corrected value of stone to 6.35029318 kg 2015-10-01 17:28:22 +00:00
Rogelio J. Baucells
06c0515d4a Merge pull request #461 from rjbaucells/develop
Sparse Matrix non sorted index issue #452
2015-09-07 13:02:14 -04:00
Rogelio J. Baucells
9e47b8a316 Sparse Matrix non sorted index issue
Fixed issue #450
2015-09-03 19:45:48 -04:00
Jos de Jong
08ccb24c06 Merge pull request #440 from rjbaucells/develop
Fix for issue #437 (Possible bug in lusolve)
2015-08-28 20:45:49 +02:00
Eric
512de0d04c Fixed tabs 2015-08-28 03:51:09 +00:00
Eric
bd0672b92a Merge branch 'develop' of https://github.com/josdejong/mathjs into develop
Conflicts:
	lib/type/unit/Unit.js
2015-08-28 03:49:22 +00:00
Eric
e01bbcf987 Bug fix: Unit.to now flags unit lists as simplified 2015-08-28 03:46:03 +00:00
Rogelio J. Baucells
06c3cd31b5 Issue #437 fix 2015-08-27 21:07:13 -04:00
Eric
687a40c77b Added helper function fixedUnit to physicalConstants.js 2015-08-25 19:46:57 +00:00
Eric
55d3842d60 Fixed tabs 2015-08-25 03:24:40 +00:00
Eric
ce213ca467 Created _fix and _unfix helper functions
Physical constants have fixed prefix
Updated unit tests
2015-08-25 03:18:27 +00:00
Eric
2968f2b4ff Almost done with unit prefix powers 2015-08-23 21:00:52 +00:00
jos
2b721d3f8e Released version 2.1.1 2015-08-12 19:35:11 +02:00
jos
261d7a912f Fixed wrong value of magneticFluxQuantum and wrong value of molarMassC12 in the docs 2015-08-12 19:27:29 +02:00
Eric
209a0586d8 Fixed molar mass of C12 2015-08-11 22:44:24 +00:00
Eric
81d0f0a300 Fixed speed of light constant 2015-08-11 20:26:51 +00:00
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