Commit graph

45 commits

Author SHA1 Message Date
whitequark
ec6f5ebaf2 Automatically derive molar mass from formulas.
This commit does not recognize any radioactive elements in formulas
that rarely if ever appear as a part of compound, i.e. every one
except Bi, Th, U, Pu. This is done to be able to recognize some
common abbreviations in organic chemistry: Me, Et, Ac, Ph, some
of which clash with transuranics.
2017-02-11 13:34:38 +00:00
whitequark
fcf0ea3e59 Fix whitespace in definitions.units. 2017-02-11 13:34:38 +00:00
Tiffany Bennett
a52795cc1a Add speed of light 2016-11-10 18:50:10 -05:00
Tiffany Bennett
298498c955 Fix conflicting fen unit 2016-11-10 18:49:57 -05:00
Tiffany Bennett
5ec3e4231f Add unit categories 2016-11-10 17:14:14 -05:00
Tiffany Bennett
716efc2edf Allow units with spaces by wrapping them in "" 2016-10-11 12:43:58 -04:00
Tiffany Bennett
acdc0321a8 Add volume and missing radii to celestial bodies 2016-10-07 19:06:07 -04:00
Tiffany Bennett
c4bdaf4e8c Gb is usually gigabit, not gilbert 2016-10-07 18:22:01 -04:00
Tiffany Bennett
bbcc6978c9 Replace int- prefixed units with doc comments
Previously all the customary units had int- prefixed to distinguish them
from historical measurements, but doc comments accomplish this task better.
2016-10-01 23:16:58 -04:00
Tiffany Bennett
9c3cb15d8f Show name and docs for substances 2016-09-28 23:20:17 -04:00
Tiffany Bennett
8616bb0ca8 Add substances for elementary particles 2016-09-28 23:02:36 -04:00
Tiffany Bennett
e29787c0fb Implement addition of substances 2016-09-28 22:11:33 -04:00
Tiffany Bennett
83427e5b94 Warn on conflicting properties, fix conflicts 2016-09-28 15:29:59 -04:00
Tiffany Bennett
d9eb86fcca Move celestial body definitions to substances 2016-09-28 00:32:11 -04:00
Tiffany Bennett
44aeb2fccf Update definitions to use substances 2016-09-27 23:46:51 -04:00
Tiffany Bennett
06a4456c72 Add tau 2016-09-26 00:56:06 -04:00
Tiffany Bennett
9fff8b71c6 Fix angular momentum quantity, add flow rate
Removes spin because of conflict.
2016-09-26 00:46:05 -04:00
Tiffany Bennett
77f898fa9d Add doc comments for base units 2016-09-23 16:54:15 -04:00
Tiffany Bennett
f2e288821a Remove 'k' common incorrect shorthand for kelvin 2016-09-17 15:21:33 -04:00
Tiffany Bennett
14f4e81cd3 Ununoctium typo 2016-09-16 14:56:44 -04:00
Tiffany Bennett
a5d4e30a0d Add atomic masses for Rutherfordium ... Ununoctium 2016-09-16 14:51:02 -04:00
Tiffany Bennett
96cc76279d Measure atomic mass units in g/mol (molar mass) 2016-09-16 14:32:07 -04:00
Tiffany Bennett
06c6ae9c44 Currency units 2016-09-16 14:10:32 -04:00
Tiffany Bennett
471d70c3a8 Download and keep updated currency conversions 2016-09-16 12:40:13 -04:00
Tiffany Bennett
4b297c15ce Fix the viscosity quantity 2016-09-11 11:37:46 -04:00
Tiffany Bennett
14873d1e57 Warn on unit conflicts, fix conflicts 2016-09-07 17:16:57 -04:00
Tiffany Bennett
eedb31245b Add comprehensive russian traditional measurements 2016-09-06 23:43:05 -04:00
Tiffany Bennett
ce39db8e7d Allow some multi-word units, remove US-/UK- prefix
Accepts units like "survey foot" and "british mile" now, instead of the
previous solution, which was prefixes to adjust between international
and old units such as US- and UK-. These prefixes were confusing because
they could be used on anything, not just customary units of
length. USgallon makes no sense, for example, because it is multiplying
the volume of a gallon by the difference between a survey foot and an
international foot.
2016-09-04 13:49:48 -04:00
Tiffany Bennett
513fe3dd4b Add numerous new quantities 2016-09-02 19:24:00 -04:00
Tiffany Bennett
cb635da526 Unit def syntax for non-standalone prefixes 2016-09-02 11:31:42 -04:00
Tiffany Bennett
aca16819e5 Add jerk, snap, crackle, and pop quantities 2016-09-01 22:31:07 -04:00
Tiffany Bennett
39a80d0a16 Use longer canonical base unit names 2016-08-30 00:50:17 -04:00
Tiffany Bennett
f58ccb2676 Prevent weird canonicalizations of gram prefixes
mg -> millimillikg is now mg -> milligram
2016-08-29 17:50:03 -04:00
Tiffany Bennett
7e29b5dad9 Add some more unicode units 2016-08-27 22:46:34 -04:00
Tiffany Bennett
eab9923f04 Add constant definition for parsec 2016-08-27 21:25:12 -04:00
Tiffany Bennett
30b244c961 Add more ways to refer to bits and bytes 2016-08-25 15:18:42 -04:00
Tiffany Bennett
286fd0e44c Add a few new quantities 2016-08-24 22:34:54 -04:00
Tiffany Bennett
cfeca70dc2 Rename some commonly confused units 2016-08-24 12:23:15 -04:00
Tiffany Bennett
6432f0b864 Fix quantity conflicts 2016-08-21 15:28:42 -04:00
Tiffany Bennett
5413bd1a22 Add radiometric units 2016-08-21 11:20:58 -04:00
Tiffany Bennett
c9ad5d9ff0 Enable dimensionless primitive units 2016-08-21 10:55:44 -04:00
Tiffany Bennett
920fffe9ca Introduce quantity syntax to gnu units definitions 2016-08-21 10:50:26 -04:00
Tiffany Bennett
ef2362f6bc Fix precedence of / in GNU units 2016-08-21 09:53:14 -04:00
Tiffany Bennett
6aac7bab8c Run successfully off of definitions.units 2016-08-20 21:35:56 -04:00
Tiffany Bennett
8db988c589 Implement tokenizer for GNU definitions.units 2016-08-20 15:11:27 -04:00