File:  [LON-CAPA] / loncom / homework / units.json
Thu Aug 13 18:30:24 2015 UTC (6 years, 9 months ago) by damieng
Branches: MAIN
```added support for ° as units in lcmath
```

```{
"base": [
{ "name": "meter",    "symbol": "m",   "comment": "length" },
{ "name": "kilogram", "symbol": "kg",  "comment": "mass" },
{ "name": "second",   "symbol": "s",   "comment": "time" },
{ "name": "ampere",   "symbol": "A",   "comment": "electric current" },
{ "name": "kelvin",   "symbol": "K",   "comment": "thermodynamic temperature" },
{ "name": "mole",     "symbol": "mol", "comment": "amount of substance" },
{ "name": "candela",  "symbol": "cd",  "comment": "luminous intensity" },
{ "name": "decibel",  "symbol": "dB",  "comment": "log of pressure amplitude" }
],

"prefix": [
{ "name": "yotta", "symbol": "Y", "factor": "10^24" },
{ "name": "zetta", "symbol": "Z", "factor": "10^21" },
{ "name": "exa",   "symbol": "E", "factor": "10^18" },
{ "name": "peta",  "symbol": "P", "factor": "10^15" },
{ "name": "tera",  "symbol": "T", "factor": "10^12" },
{ "name": "giga",  "symbol": "G", "factor": "10^9" },
{ "name": "mega",  "symbol": "M", "factor": "10^6" },
{ "name": "kilo",  "symbol": "k", "factor": "10^3" },
{ "name": "hecto", "symbol": "h", "factor": "10^2" },
{ "name": "deca",  "symbol": "D", "factor": "10^1" },

{ "name": "deci",  "symbol": "d", "factor": "10^-1" },
{ "name": "centi", "symbol": "c", "factor": "10^-2" },
{ "name": "milli", "symbol": "m", "factor": "10^-3" },
{ "name": "micro", "symbol": "u", "factor": "10^-6" },
{ "name": "micro", "symbol": "µ", "factor": "10^-6", "comment": "micro sign character 00B5" },
{ "name": "micro", "symbol": "μ", "factor": "10^-6", "comment": "greek mu character 03BC" },
{ "name": "nano",  "symbol": "n", "factor": "10^-9" },
{ "name": "pico",  "symbol": "p", "factor": "10^-12" },
{ "name": "femto", "symbol": "f", "factor": "10^-15" },
{ "name": "atto",  "symbol": "a", "factor": "10^-18" },
{ "name": "zepto", "symbol": "z", "factor": "10^-21" },
{ "name": "yocto", "symbol": "y", "factor": "10^-24" }
],

"derived": [
{ "name": "gram",            "symbol": "g",    "convert": "0.001 kg",                "comment": "mass" },
{ "name": "minute",          "symbol": "min",  "convert": "60 s",                    "comment": "time" },
{ "name": "hour",            "symbol": "hr",   "convert": "3600 s",                  "comment": "time" },
{ "name": "hour",            "symbol": "h",    "convert": "3600 s",                  "comment": "time" },
{ "name": "day",             "symbol": "day",  "convert": "24.0 hr",                 "comment": "time" },
{ "name": "day",             "symbol": "days", "convert": "24.0 hr",                 "comment": "time" },
{ "name": "year",            "symbol": "yr",   "convert": "365.24 day",              "comment": "time" },
{ "name": "pound",           "symbol": "lb",   "convert": "0.45359237 kg",           "comment": "mass" },
{ "name": "ounce",           "symbol": "oz",   "convert": "2.83495E-2 kg",           "comment": "mass" },
{ "name": "inch",            "symbol": "in",   "convert": "2.54 cm",                 "comment": "length" },
{ "name": "foot",            "symbol": "ft",   "convert": "12 in",                   "comment": "length" },
{ "name": "mile",            "symbol": "mi",   "convert": "5280 ft",                 "comment": "length" },
{ "name": "yard",            "symbol": "yd",   "convert": "0.9144 m",                "comment": "length" },
{ "name": "nautical_mile",   "symbol": "n_mi", "convert": "6080 ft",                 "comment": "length, nautical mile (UK)" },
{ "name": "astroUnit",       "symbol": "AU",   "convert": "1.49598E11 m",            "comment": "length, mean distance earth to sun" },
{ "name": "parsec",          "symbol": "pc",   "convert": "3.08568025E16 m",         "comment": "length" },
{ "name": "light-year",      "symbol": "ly",   "convert": "9460730472580800 m",      "comment": "length" },
{ "name": "rood",            "symbol": "rood", "convert": "1210 yd^2",               "comment": "area, rood" },
{ "name": "acre",            "symbol": "acre", "convert": "4840 yd^2",               "comment": "area, acre" },
{ "name": "hertz",           "symbol": "Hz",   "convert": "1/s",                     "comment": "frequency" },
{ "name": "litre",           "symbol": "L",    "convert": "10^3*cm^3",               "comment": "volume" },
{ "name": "newton",          "symbol": "N",    "convert": "m*kg/s^2",                "comment": "force" },
{ "name": "pound_force",     "symbol": "lbf",  "convert": "4.44822 N",               "comment": "force" },
{ "name": "dyne",            "symbol": "dyn",  "convert": "1E-5 N",                  "comment": "force" },
{ "name": "pascal",          "symbol": "Pa",   "convert": "N/m^2",                   "comment": "pressure, stress" },
{ "name": "bar",             "symbol": "bar",  "convert": "1E5 Pa",                  "comment": "pressure" },
{ "name": "mmHg",            "symbol": "mmHg", "convert": "1.33322E2 Pa",            "comment": "pressure, millimeter of mercury" },
{ "name": "torr",            "symbol": "torr", "convert": "1 mmHg",                  "comment": "pressure" },
{ "name": "atm",             "symbol": "atm",  "convert": "760 torr",                "comment": "standard atmosphere" },
{ "name": "joule",           "symbol": "J",    "convert": "N*m",                     "comment": "energy, work, heat" },
{ "name": "electronvolt",    "symbol": "eV",   "convert": "1.6021892E-19 J",         "comment": "energy" },
{ "name": "calorie",         "symbol": "cal",  "convert": "4.1868 J",                "comment": "energy" },
{ "name": "Btu",             "symbol": "Btu",  "convert": "1.05506E3 J",             "comment": "energy" },
{ "name": "watt",            "symbol": "W",    "convert": "J/s",                     "comment": "power, radiant flux" },
{ "name": "coulomb",         "symbol": "C",    "convert": "A*s",                     "comment": "electric charge" },
{ "name": "volt",            "symbol": "V",    "convert": "J/C",                     "comment": "electric potential, electromotive force" },
{ "name": "ohm",             "symbol": "ohm",  "convert": "V/A",                     "comment": "electric resistance, use this in /ANS" },
{ "name": "ohm",             "symbol": "ohms", "convert": "V/A",                     "comment": "electric resistance" },
{ "name": "ohm",             "symbol": "Ohm",  "convert": "V/A",                     "comment": "electric resistance" },
{ "name": "ohm",             "symbol": "Ohms", "convert": "V/A",                     "comment": "electric resistance" },
{ "name": "mho",             "symbol": "mho",  "convert": "1/ohm",                   "comment": "electric conductance" },
{ "name": "mho",             "symbol": "mhos", "convert": "1/ohm",                   "comment": "electric conductance" },
{ "name": "mho",             "symbol": "Mho",  "convert": "1/ohm",                   "comment": "electric conductance" },
{ "name": "mho",             "symbol": "Mhos", "convert": "1/ohm",                   "comment": "electric conductance" },
{ "name": "siemens",         "symbol": "S",    "convert": "1/Ohm",                   "comment": "electric conductance" },
{ "name": "farad",           "symbol": "F",    "convert": "C/V",                     "comment": "electric capacitance" },
{ "name": "tesla",           "symbol": "T",    "convert": "V*s/m^2",                 "comment": "magnetic flux density" },
{ "name": "weber",           "symbol": "Wb",   "convert": "V*s",                     "comment": "magnetic flux" },
{ "name": "henry",           "symbol": "H",    "convert": "V*s/A",                   "comment": "inductance" },
{ "name": "degree",          "symbol": "deg",  "convert": "1.745329E-2 rad",         "comment": "plane angle (Pi rad=180 deg)" },
{ "name": "degree",          "symbol": "°",    "convert": "1.745329E-2 rad",         "comment": "same as deg" },
{ "name": "steradian",       "symbol": "sr",   "convert": "m^2 /m^2",                "comment": "solid angle" },
{ "name": "lumen",           "symbol": "lm",   "convert": "cd*sr",                   "comment": "luminous flux" },
{ "name": "lux",             "symbol": "lx",   "convert": "cd*sr/m^2",               "comment": "illuminance" },
{ "name": "becquerel",       "symbol": "Bq",   "convert": "1/s",                     "comment": "activity (radioactive)" },
{ "name": "curie",           "symbol": "Ci",   "convert": "3.70E10 Bq",              "comment": "activity (radioactive)" },
{ "name": "gray",            "symbol": "Gy",   "convert": "J/kg",                    "comment": "absorbed dose (of radiation)" },
{ "name": "sievert",         "symbol": "Sv",   "convert": "J/kg",                    "comment": "dose equivalent (dose equivalent index)" },
{ "name": "celcius",         "symbol": "degC", "convert": "1 K",                     "comment": "multiplicatively OK" },
{ "name": "fahrenheit",      "symbol": "degF", "convert": "0.555555555 K",           "comment": "multiplicatively OK" },
{ "name": "molarity",        "symbol": "M",    "convert": "mol/L",                   "comment": "chemisty" },
{ "name": "amu",             "symbol": "amu",  "convert": "1.66053873e-27 kg",       "comment": "atomic mass unit" },
{ "name": "amu",             "symbol": "u",    "convert": "1.66053873e-27 kg",       "comment": "atomic mass unit" },
{ "name": "cubiccentimeter", "symbol": "cc",   "convert": "cm^3",                    "comment": "cubic centimeter" },
{ "name": "electroncharge",  "symbol": "e",    "convert": "1.6021892E-19 C",         "comment": "elementary charge" },
{ "name": "hbar",            "symbol": "hbar", "convert": "1.05457148E-34 m^2*kg/s", "comment": "Planck constant" },
{ "name": "milesperhour",    "symbol": "mph",  "convert": "0.44704 m/s",             "comment": "miles per hour" },
{ "name": "rpm",             "symbol": "rpm",  "convert": "0.0166666667/s",          "comment": "rounds per minute" },
{ "name": "rpm",             "symbol": "rpms", "convert": "0.0166666667/s",          "comment": "rounds per minute" }
]
}
```

FreeBSD-CVSweb <freebsd-cvsweb@FreeBSD.org>