blob: ddc342341f0bf51334753d25133c6cb7b03320a4 [file] [log] [blame]
swissChili729acd52024-03-05 11:52:45 -05001#
2# This file is the units database for use with GNU units, a units conversion
3# program by Adrian Mariano adrianm@gnu.org
4#
5# Febuary 2024 Version 3.19
6# last updated 16 February 2024
7#
8# Copyright (C) 1996-2002, 2004-2020, 2022, 2024
9# Free Software Foundation, Inc
10#
11# This program is free software; you can redistribute it and/or modify
12# it under the terms of the GNU General Public License as published by
13# the Free Software Foundation; either version 3 of the License, or
14# (at your option) any later version.
15#
16# This program is distributed in the hope that it will be useful,
17# but WITHOUT ANY WARRANTY; without even the implied warranty of
18# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
19# GNU General Public License for more details.
20#
21# You should have received a copy of the GNU General Public License
22# along with this program; if not, write to the Free Software
23# Foundation, Inc., 51 Franklin Street, Fifth Floor,
24# Boston, MA 02110-1301 USA
25#
26############################################################################
27#
28# Improvements and corrections are welcome.
29#
30# See the end of this file for a list of items we have chosen to exclude
31# or have decided are out of scope for GNU units.
32#
33# Fundamental constants in this file are the 2018 CODATA recommended values.
34#
35# Most units data was drawn from
36# 1. NIST Special Publication 811, Guide for the
37# Use of the International System of Units (SI).
38# Barry N. Taylor. 2008
39# https://www.nist.gov/pml/special-publication-811
40# 2. CRC Handbook of Chemistry and Physics 70th edition
41# 3. Oxford English Dictionary
42# 4. Webster's New Universal Unabridged Dictionary
43# 5. Units of Measure by Stephen Dresner
44# 6. A Dictionary of English Weights and Measures by Ronald Zupko
45# 7. British Weights and Measures by Ronald Zupko
46# 8. Realm of Measure by Isaac Asimov
47# 9. United States standards of weights and measures, their
48# creation and creators by Arthur H. Frazier.
49# 10. French weights and measures before the Revolution: a
50# dictionary of provincial and local units by Ronald Zupko
51# 11. Weights and Measures: their ancient origins and their
52# development in Great Britain up to AD 1855 by FG Skinner
53# 12. The World of Measurements by H. Arthur Klein
54# 13. For Good Measure by William Johnstone
55# 14. NTC's Encyclopedia of International Weights and Measures
56# by William Johnstone
57# 15. Sizes by John Lord
58# 16. Sizesaurus by Stephen Strauss
59# 17. CODATA Recommended Values of Physical Constants available at
60# http://physics.nist.gov/cuu/Constants/index.html
61# 18. How Many? A Dictionary of Units of Measurement. Available at
62# http://www.ibiblio.org/units/
63# 19. Numericana. http://www.numericana.com
64# 20. UK history of measurement
65# https://metrication.uk/more/timeline/
66# 21. NIST Handbook 44, Specifications, Tolerances, and
67# Other Technical Requirements for Weighing and Measuring
68# Devices. 2011
69# 22. NIST Special Publication 447, Weights and Measures Standards
70# of the United States: a brief history. Lewis V. Judson.
71# 1963; rev. 1976
72# 23. CRC Handbook of Chemistry and Physics, 96th edition
73# 24. Dictionary of Scientific Units, 6th ed. H.G. Jerrard and D.B.
74# McNeill. 1992
75# 25. NIST Special Publication 330, The International System of
76# Units (SI). ed. Barry N. Taylor and Ambler Thompson. 2008
77# https://www.nist.gov/pml/special-publication-330
78# 26. BIPM Brochure, The International System of Units (SI).
79# 9th ed., 2019
80# https://www.bipm.org/en/publications/si-brochure/
81#
82###########################################################################
83#
84# If units you use are missing or defined incorrectly, please contact me.
85# If your country's local units are missing and you are willing to supply
86# them, please send me a list.
87#
88###########################################################################
89
90###########################################################################
91#
92# Brief Philosophy of this file
93#
94# Most unit definitions are made in terms of integers or simple fractions of
95# other definitions. The typical exceptions are when converting between two
96# different unit systems, or the values of measured physical constants. In
97# this file definitions are given in the most natural and revealing way in
98# terms of integer factors.
99#
100# If you make changes be sure to run 'units --check' to check your work.
101#
102# The file is USA-centric, but there is some modest effort to support other
103# countries. This file is now coded in UTF-8. To support environments where
104# UTF-8 is not available, definitions that require this character set are
105# wrapped in !utf8 directives.
106#
107# When a unit name is used in different countries with the different meanings
108# the system should be as follows:
109#
110# Suppose countries ABC and XYZ both use the "foo". Then globally define
111#
112# ABCfoo <some value>
113# XYZfoo <different value>
114#
115# Then, using the !locale directive, define the "foo" appropriately for each of
116# the two countries with a definition like
117#
118# !locale ABC
119# foo ABCfoo
120# !endlocale
121#
122###########################################################################
123
124!locale en_US
125! set UNITS_ENGLISH US
126!endlocale
127
128!locale en_GB
129! set UNITS_ENGLISH GB
130!endlocale
131
132!set UNITS_ENGLISH US # Default setting for English units
133
134!set UNITS_SYSTEM default # Set a default value
135
136!varnot UNITS_SYSTEM si emu esu gaussian gauss hlu natural natural-gauss hartree planck planck-red default
137!message Unknown unit system given with -u or UNITS_SYSTEM environment variable
138!message Valid systems: si, emu, esu, gauss[ian], hlu, natural, natural-gauss
139!message planck, planck-red, hartree
140!message Using SI
141!prompt (SI)
142!endvar
143
144!var UNITS_SYSTEM si
145!message SI units selected
146!prompt (SI)
147!endvar
148
149###########################################################################
150# #
151# Primitive units. Any unit defined to contain a '!' character is a #
152# primitive unit which will not be reduced any further. All units should #
153# reduce to primitive units. #
154# #
155###########################################################################
156
157#
158# SI units
159#
160# On 20 May 2019, the SI was revised to define the units by fixing the
161# values of physical constants that depend on those units.
162#
163# https://www.nist.gov/si-redefinition/
164#
165# The BIPM--the International Bureau of Weights and Measures--provides a
166# succinct description of the new SI in its Concise Summary:
167#
168# https://www.bipm.org/utils/common/pdf/si-brochure/SI-Brochure-9-concise-EN.pdf
169#
170# The SI is the system of units in which:
171#
172# * the unperturbed ground state hyperfine transition frequency of the
173# caesium 133 atom is delta nu_Cs = 9 192 631 770 Hz,
174# * the speed of light in vacuum, c, is 299 792 458 m/s,
175# * the Planck constant, h, is 6.626 070 15 * 10^-34 J s,
176# * the elementary charge, e, is 1.602 176 634 * 10^-19 C,
177# * the Boltzmann constant, k, is 1.380 649 * 10^-23 J/K,
178# * the Avogadro constant, N_A, is 6.022 140 76 * 10^23 mol^-1,
179# * the luminous efficacy of monochromatic radiation of frequency
180# 540 * 10^12 Hz, K_cd, is 683 lm/W,
181#
182# where the hertz, joule, coulomb, lumen, and watt, with unit symbols Hz,
183# J, C, lm, and W, respectively, are related to the units second, metre,
184# kilogram, ampere, kelvin, mole, and candela, with unit symbols s, m, kg,
185# A, K, mol, and cd, respectively, according to Hz = s^-1, J = kg m^2 s^-2,
186# C = A s, lm = cd m^2 m^-2 = cd sr, and W = kg m^2 s^-3.
187#
188# These definitions specify the exact numerical value of each constant when
189# its value is expressed in the corresponding SI unit. By fixing the exact
190# numerical value the unit becomes defined, since the product of the
191# numerical value and the unit has to equal the value of the constant,
192# which is invariant.
193#
194# The defining constants have been chosen such that, when taken together,
195# their units cover all of the units of the SI. In general, there is no
196# one-to-one correspondence between the defining constants and the SI base
197# units. Any SI unit is a product of powers of these seven constants and a
198# dimensionless factor.
199#
200# Until 2018, the SI was defined in terms of base units and derived units.
201# These categories are no longer essential in the SI, but they are maintained
202# in view of their convenience and widespread use. They are arguably more
203# intuitive than the new definitions. (They are also essential to the
204# operation of GNU units.) The definitions of the base units, which follow
205# from the definition of the SI in terms of the seven defining constants, are
206# given below.
207#
208
209s ! # The second, symbol s, is the SI unit of time. It is defined
210second s # by taking the fixed numerical value of the unperturbed
211 # ground-state hyperfine transition frequency of the
212 # cesium-133 atom to be 9 192 631 770 when expressed in the
213 # unit Hz, which is equal to 1/s.
214 #
215 # This definition is a restatement of the previous one, the
216 # duration of 9192631770 periods of the radiation corresponding
217 # to the cesium-133 transition.
218
219nu_133Cs 9192631770 Hz # Cesium-133 transition frequency (exact)
220
221c_SI 299792458
222c 299792458 m/s # speed of light in vacuum (exact)
223
224m ! # The metre, symbol m, is the SI unit of length. It is
225meter m # defined by taking the fixed numerical value of the speed
226metre m # of light in vacuum, c, to be 299 792 458 when expressed in
227 # units of m/s.
228 #
229 # This definition is a rewording of the previous one and is
230 # equivalent to defining the meter as the distance light
231 # travels in 1|299792458 seconds. The meter was originally
232 # intended to be 1e-7 of the length along a meridian from the
233 # equator to a pole.
234
235h_SI 6.62607015e-34
236h 6.62607015e-34 J s # Planck constant (exact)
237
238kg ! # The kilogram, symbol kg, is the SI unit of mass. It is
239kilogram kg # defined by taking the fixed numerical value of the Planck
240 # constant, h, to be 6.626 070 15 * 10^-34 when expressed in
241 # the unit J s which is equal to kg m^2 / s.
242 #
243 # One advantage of fixing h to define the kilogram is that this
244 # affects constants used to define the ampere. If the kg were
245 # defined by directly fixing the mass of something, then h
246 # would be subject to error.
247 #
248 # The previous definition of the kilogram was the mass of the
249 # international prototype kilogram. The kilogram was the last
250 # unit whose definition relied on reference to an artifact.
251 #
252 # It is not obvious what this new definition means, or
253 # intuitively how fixing Planck's constant defines the
254 # kilogram. To define the kilogram we need to give the mass
255 # of some reference in kilograms. Previously the prototype in
256 # France served as this reference, and it weighed exactly 1
257 # kg. But the reference can have any weight as long as you
258 # know the weight of the reference. The new definition uses
259 # the "mass" of a photon, or more accurately, the mass
260 # equivalent of the energy of a photon. The energy of a
261 # photon depends on its frequency. If you pick a frequency,
262 # f, then the energy of the photon is hf, and hence the mass
263 # equivalent is hf/c^2. If we reduce this expression using
264 # the constant defined values for h and c the result is a
265 # value in kilograms for the mass-equivalent of a photon of
266 # frequency f, which can therefore define the size of the
267 # kilogram.
268 #
269 # For more on the relationship between mass an Planck's
270 # constant:
271 #
272 # https://www.nist.gov/si-redefinition/kilogram-mass-and-plancks-constant
273 # This definition may still seem rather abstract: you can't
274 # place a "kilogram of radiation" on one side of a balance.
275 # Metrologists realize the kilogram using a Kibble Balance, a
276 # device which relates mechanical energy to electrical energy
277 # and can measure mass with extreme accuracy if h is known.
278 #
279 # For more on the Kibble Balance see
280 #
281 # https://www.nist.gov/si-redefinition/kilogram-kibble-balance
282 # https://en.wikipedia.org/wiki/Kibble_balance
283
284k_SI 1.380649e-23
285boltzmann 1.380649e-23 J/K # Boltzmann constant (exact)
286k boltzmann
287
288K ! # The kelvin, symbol K, is the SI unit of thermodynamic
289kelvin K # temperature. It is defined by taking the fixed numerical
290 # value of the Boltzmann constant, k, to be 1.380 649 * 10^-23
291 # when expressed in the unit J/K, which is equal to
292 # kg m^2/s^2 K.
293 #
294 # The boltzmann constant establishes the relationship between
295 # energy and temperature. The average thermal energy carried
296 # by each degree of freedom is kT/2. A monatomic ideal gas
297 # has three degrees of freedom corresponding to the three
298 # spatial directions, which means its thermal energy is
299 # (3/2) k T.
300 #
301 # The previous definition of the kelvin was based on the
302 # triple point of water. The change in the definition of the
303 # kelvin will not have much effect on measurement practice.
304 # Practical temperature calibration makes use of two scales,
305 # the International Temperature Scale of 1990 (ITS-90), which
306 # covers the range of 0.65 K to 1357.77K and the Provisional
307 # Low Temperature Scale of 2000 (PLTS-2000), which covers the
308 # range of 0.9 mK to 1 K.
309 # https://www.bipm.org/en/committees/cc/cct/publications-cc.html
310 #
311 # The ITS-90 contains 17 reference points including things
312 # like the triple point of hydrogen (13.8033 K) or the
313 # freezing point of gold (1337.33 K), and of course the triple
314 # point of water. The PLTS-2000 specifies four reference
315 # points, all based on properties of helium-3.
316 #
317 # The redefinition of the kelvin will not affect the values of
318 # these reference points, which have been determined by
319 # primary thermometry, using thermometers that rely only on
320 # relationships that allow temperature to be calculated
321 # directly without using any unknown quantities. Examples
322 # include acoustic thermometers, which measure the speed of
323 # sound in a gas, or electronic thermometers, which measure
324 # tiny voltage fluctuations in resistors. Both variables
325 # depend directly on temperature.
326
327e_SI 1.602176634e-19
328e 1.602176634e-19 C # electron charge (exact)
329
330A ! # The ampere, symbol A, is the SI unit of electric current.
331ampere A # It is defined by taking the fixed numerical value of the
332amp ampere # elementary charge, e, to be 1.602 176 634 * 10^-19 when
333 # expressed in the unit C, which is equal to A*s.
334 #
335 # The previous definition was the current which produces a
336 # force of 2e-7 N/m between two infinitely long wires a meter
337 # apart. This definition was difficult to realize accurately.
338 #
339 # The ampere is actually realized by establishing the volt and
340 # the ohm, since A = V / ohm. These measurements can be done
341 # using the Josephson effect and the quantum Hall effect,
342 # which accurately measure voltage and resistance, respectively,
343 # with reference to two fixed constants, the Josephson
344 # constant, K_J=2e/h and the von Klitzing constant, R_K=h/e^2.
345 # Under the previous SI system, these constants had official
346 # fixed values, defined in 1990. This created a situation
347 # where the standard values for the volt and ohm were in some
348 # sense outside of SI because they depended primarily on
349 # constants different from the ones used to define SI. After
350 # the revision, since e and h have exact definitions, the
351 # Josephson and von Klitzing constants will also have exact
352 # definitions that derive from SI instead of the conventional
353 # 1990 values.
354 #
355 # In fact we know that there is a small offset between the
356 # conventional values of the electrical units based on the
357 # conventional 1990 values and the SI values. The new
358 # definition, which brings the practical electrical units back
359 # into SI, will lead to a one time change of +0.1ppm for
360 # voltage values and +0.02ppm for resistance values.
361 #
362 # The previous definition resulted in fixed exact values for
363 # the vacuum permeability (mu0), the impedance of free space
364 # (Z0), the vacuum permittivity (epsilon0), and the Coulomb
365 # constant. With the new definition, these four values are
366 # subject to experimental error.
367
368avogadro 6.02214076e23 / mol # Size of a mole (exact)
369N_A avogadro
370
371mol ! # The mole, symbol mol, is the SI unit of amount of
372mole mol # substance. One mole contains exactly 6.022 140 76 * 10^23
373 # elementary entities. This number is the fixed numerical
374 # value of the Avogadro constant, N_A, when expressed in the
375 # unit 1/mol and is called the Avogadro number. The amount of
376 # substance, symbol n, of a system is a measure of the number
377 # of specified elementary entities. An elementary entity may
378 # be an atom, a molecule, an ion, an electron, any other
379 # particle or specified group of particles.
380 #
381 # The atomic mass unit (u) is defined as 1/12 the mass of
382 # carbon-12. Previously the mole was defined so that a mole
383 # of carbon-12 weighed exactly 12g, or N_A u = 1 g/mol
384 # exactly. This relationship is now an experimental,
385 # approximate relationship.
386 #
387 # To determine the size of the mole, researchers used spheres
388 # of very pure silicon-28 that weighed a kilogram. They
389 # measured the molar mass of Si-28 using mass spectrometry and
390 # used X-ray diffraction interferometry to determine the
391 # spacing of the silicon atoms in the sphere. Using the
392 # sphere's volume it was then possible to determine the number
393 # of silicon atoms in the sphere, and hence determine the
394 # Avogadro constant. The results of this experiment were used
395 # to define N_A, which is henceforth a fixed, unchanging
396 # quantity.
397
398cd ! # The candela, symbol cd, is the SI unit of luminous intensity
399candela cd # in a given direction. It is defined by taking the fixed
400 # numerical value of the luminous efficacy of monochromatic
401 # radiation of the frequency 540e12 Hz to be 683 when
402 # expressed in the unit lumen/watt, which is equal to
403 # cd sr/W, or cd sr s^3/kg m^2
404 #
405 # This definition is a rewording of the previous definition.
406 # Luminous intensity differs from radiant intensity (W/sr) in
407 # that it is adjusted for human perceptual dependence on
408 # wavelength. The frequency of 540e12 Hz (yellow;
409 # wavelength approximately 555 nm in vacuum) is where human
410 # perception is most efficient.
411
412K_cd 683 lumen/W # Luminous efficiency at 540e12 Hz (exact)
413
414# Angular Measure
415#
416# The radian and steradian are defined as dimensionless primitive units.
417# The radian is equal to m/m and the steradian to m^2/m^2 so these units are
418# dimensionless. Retaining them as named units is useful because it allows
419# clarity in expressions and makes the meaning of unit definitions more clear.
420# These units will reduce to 1 in conversions but not for sums of units or for
421# arguments to functions.
422#
423
424radian !dimensionless # Plane angle subtended at the center of a circle by
425 # an arc equal in length to the radius of the
426 # circle.
427 # Dimension: LENGTH (of arc) / DISTANCE (radius)
428
429sr !dimensionless # Solid angle which cuts off an area of the surface
430steradian sr # of the sphere equal to that of a square with
431 # sides of length equal to the radius of the
432 # sphere.
433 # Dimension: AREA (of surface) / DISTANCE^2
434 # (radius^2)
435#
436# A primitive non-SI unit
437#
438
439bit ! # Basic unit of information (entropy). The entropy in bits
440 # of a random variable over a finite alphabet is defined
441 # to be the sum of -p(i)*log2(p(i)) over the alphabet where
442 # p(i) is the probability that the random variable takes
443 # on the value i.
444
445#
446# Currency: the primitive unit of currency is defined in currency.units.
447# It is usually the US$ or the euro, but it is user selectable.
448#
449
450#
451# Absolute value
452#
453
454abs(x) noerror sqrt(x^2)
455
456###########################################################################
457# #
458# Prefixes (longer names must come first) #
459# #
460###########################################################################
461
462quetta- 1e30 # Allegedly from "q" plus Greek "deka" (ten)
463ronna- 1e27 # Allegedly from "r" plus Greek "ennea" (nine)
464yotta- 1e24 # Greek or Latin "octo" (eight)
465zetta- 1e21 # Latin "septem" (seven)
466exa- 1e18 # Greek "hex" (six)
467peta- 1e15 # Greek "pente" (five)
468tera- 1e12 # Greek "teras" (monster)
469giga- 1e9 # Greek "gigas" (giant)
470mega- 1e6 # Greek "megas" (large)
471myria- 1e4 # Not an official SI prefix
472kilo- 1e3 # Greek "chilioi" (thousand)
473hecto- 1e2 # Greek "hekaton" (hundred)
474deca- 1e1 # Greek "deka" (ten)
475deka- deca
476deci- 1e-1 # Latin "decimus" (tenth)
477centi- 1e-2 # Latin "centum" (hundred)
478milli- 1e-3 # Latin "mille" (thousand)
479micro- 1e-6 # Latin "micro" or Greek "mikros" (small)
480nano- 1e-9 # Latin "nanus" or Greek "nanos" (dwarf)
481pico- 1e-12 # Spanish "pico" (a bit)
482femto- 1e-15 # Danish-Norwegian "femten" (fifteen)
483atto- 1e-18 # Danish-Norwegian "atten" (eighteen)
484zepto- 1e-21 # Latin "septem" (seven)
485yocto- 1e-24 # Greek or Latin "octo" (eight)
486ronto- 1e-27 # Allegedly "r" plus Latin "novum" (nine)
487quecto- 1e-30 # Allegedly "q" plus Latin "decim" (ten)
488
489quarter- 1|4
490semi- 0.5
491demi- 0.5
492hemi- 0.5
493half- 0.5
494double- 2
495triple- 3
496treble- 3
497
498kibi- 2^10 # In response to the improper and confusing
499mebi- 2^20 # use of SI prefixes for powers of two,
500gibi- 2^30 # the International Electrotechnical
501tebi- 2^40 # Commission aproved these binary prefixes
502pebi- 2^50 # in IEC 60027-2 Amendment 2 (1999).
503exbi- 2^60
504zebi- 2^70 # Zebi- and yobi- were added in the 2005 ed.,
505yobi- 2^80 # later superseded by ISO/IEC 80000-13:2008.
506robi- 2^90
507quebi- 2^100
508Ki- kibi
509Mi- mebi
510Gi- gibi
511Ti- tebi
512Pi- pebi
513Ei- exbi
514Zi- zebi
515Yi- yobi
516Ri- robi
517Qi- quebi
518
519Q- quetta
520R- ronna
521Y- yotta
522Z- zetta
523E- exa
524P- peta
525T- tera
526G- giga
527M- mega
528k- kilo
529h- hecto
530da- deka
531d- deci
532c- centi
533m- milli
534u- micro # it should be a mu but u is easy to type
535n- nano
536p- pico
537f- femto
538a- atto
539z- zepto
540y- yocto
541r- ronto
542q- quecto
543
544#
545# Names of some numbers
546#
547
548one 1
549two 2
550double 2
551couple 2
552three 3
553triple 3
554four 4
555quadruple 4
556five 5
557quintuple 5
558six 6
559seven 7
560eight 8
561nine 9
562ten 10
563eleven 11
564twelve 12
565thirteen 13
566fourteen 14
567fifteen 15
568sixteen 16
569seventeen 17
570eighteen 18
571nineteen 19
572twenty 20
573thirty 30
574forty 40
575fifty 50
576sixty 60
577seventy 70
578eighty 80
579ninety 90
580hundred 100
581thousand 1000
582million 1e6
583
584twoscore two score
585threescore three score
586fourscore four score
587fivescore five score
588sixscore six score
589sevenscore seven score
590eightscore eight score
591ninescore nine score
592tenscore ten score
593twelvescore twelve score
594
595# These number terms were described by N. Chuquet and De la Roche in the 16th
596# century as being successive powers of a million. These definitions are still
597# used in most European countries. The current US definitions for these
598# numbers arose in the 17th century and don't make nearly as much sense. These
599# numbers are listed in the CRC Concise Encyclopedia of Mathematics by Eric
600# W. Weisstein.
601
602shortbillion 1e9
603shorttrillion 1e12
604shortquadrillion 1e15
605shortquintillion 1e18
606shortsextillion 1e21
607shortseptillion 1e24
608shortoctillion 1e27
609shortnonillion 1e30
610shortnoventillion shortnonillion
611shortdecillion 1e33
612shortundecillion 1e36
613shortduodecillion 1e39
614shorttredecillion 1e42
615shortquattuordecillion 1e45
616shortquindecillion 1e48
617shortsexdecillion 1e51
618shortseptendecillion 1e54
619shortoctodecillion 1e57
620shortnovemdecillion 1e60
621shortvigintillion 1e63
622
623centillion 1e303
624googol 1e100
625
626longbillion million^2
627longtrillion million^3
628longquadrillion million^4
629longquintillion million^5
630longsextillion million^6
631longseptillion million^7
632longoctillion million^8
633longnonillion million^9
634longnoventillion longnonillion
635longdecillion million^10
636longundecillion million^11
637longduodecillion million^12
638longtredecillion million^13
639longquattuordecillion million^14
640longquindecillion million^15
641longsexdecillion million^16
642longseptdecillion million^17
643longoctodecillion million^18
644longnovemdecillion million^19
645longvigintillion million^20
646
647# These numbers fill the gaps left by the long system above.
648
649milliard 1000 million
650billiard 1000 million^2
651trilliard 1000 million^3
652quadrilliard 1000 million^4
653quintilliard 1000 million^5
654sextilliard 1000 million^6
655septilliard 1000 million^7
656octilliard 1000 million^8
657nonilliard 1000 million^9
658noventilliard nonilliard
659decilliard 1000 million^10
660
661# For consistency
662
663longmilliard milliard
664longbilliard billiard
665longtrilliard trilliard
666longquadrilliard quadrilliard
667longquintilliard quintilliard
668longsextilliard sextilliard
669longseptilliard septilliard
670longoctilliard octilliard
671longnonilliard nonilliard
672longnoventilliard noventilliard
673longdecilliard decilliard
674
675# The long centillion would be 1e600. The googolplex is another
676# familiar large number equal to 10^googol. These numbers give overflows.
677
678#
679# The short system prevails in English speaking countries
680#
681
682billion shortbillion
683trillion shorttrillion
684quadrillion shortquadrillion
685quintillion shortquintillion
686sextillion shortsextillion
687septillion shortseptillion
688octillion shortoctillion
689nonillion shortnonillion
690noventillion shortnoventillion
691decillion shortdecillion
692undecillion shortundecillion
693duodecillion shortduodecillion
694tredecillion shorttredecillion
695quattuordecillion shortquattuordecillion
696quindecillion shortquindecillion
697sexdecillion shortsexdecillion
698septendecillion shortseptendecillion
699octodecillion shortoctodecillion
700novemdecillion shortnovemdecillion
701vigintillion shortvigintillion
702
703#
704# Numbers used in India
705#
706
707lakh 1e5
708crore 1e7
709arab 1e9
710kharab 1e11
711neel 1e13
712padm 1e15
713shankh 1e17
714
715#############################################################################
716# #
717# Derived units which can be reduced to the primitive units #
718# #
719#############################################################################
720
721
722
723#
724# Named SI derived units (officially accepted)
725#
726
727newton kg m / s^2 # force
728N newton
729pascal N/m^2 # pressure or stress
730Pa pascal
731joule N m # energy
732J joule
733watt J/s # power
734W watt
735coulomb A s # charge
736C coulomb
737volt W/A # potential difference
738V volt
739ohm V/A # electrical resistance
740siemens A/V # electrical conductance
741S siemens
742farad C/V # capacitance
743F farad
744weber V s # magnetic flux
745Wb weber
746henry V s / A # inductance, also Wb/A, but needs to be
747H henry # defined this way for CGS units
748tesla Wb/m^2 # magnetic flux density
749T tesla
750hertz /s # frequency
751Hz hertz
752
753#
754# Dimensions. These are here to help with dimensional analysis and
755# because they will appear in the list produced by hitting '?' at the
756# "You want:" prompt to tell the user the dimension of the unit.
757#
758
759LENGTH meter
760AREA LENGTH^2
761VOLUME LENGTH^3
762MASS kilogram
763AMOUNT mole
764ANGLE radian
765SOLID_ANGLE steradian
766MONEY US$
767FORCE newton
768PRESSURE FORCE / AREA
769STRESS FORCE / AREA
770FREQUENCY hertz
771WAVELENGTH LENGTH
772WAVENUMBER 1/WAVELENGTH # number of waves per distance
773VELOCITY DISPLACEMENT / TIME # a vector (includes direction)
774SPEED DISTANCE / TIME # a scalar
775ACCELERATION VELOCITY / TIME
776MOMENTUM MASS VELOCITY # Also ENERGY / VELOCITY or IMPULSE
777IMPULSE FORCE TIME
778DISPLACEMENT LENGTH
779DISTANCE LENGTH
780ELONGATION LENGTH
781STRAIN ELONGATION / LENGTH
782ENERGY joule
783POWER watt
784WORK FORCE DISTANCE
785DENSITY MASS / VOLUME
786LINEAR_DENSITY MASS / LENGTH
787SPECIFIC_ENERGY ENERGY / MASS
788VISCOSITY FORCE TIME / AREA
789KINEMATIC_VISCOSITY VISCOSITY / DENSITY
790CURRENT ampere
791CHARGE coulomb
792CAPACITANCE farad
793RESISTANCE ohm
794CONDUCTANCE siemens
795# It may be easier to understand the relationship by considering
796# an object with specified dimensions and resistivity, whose
797# resistance is given by the resistivity * length / area.
798RESISTIVITY RESISTANCE AREA / LENGTH
799CONDUCTIVITY CONDUCTANCE LENGTH / AREA
800INDUCTANCE henry
801E_FIELD ELECTRIC_POTENTIAL / LENGTH
802B_FIELD tesla
803# The D and H fields are related to the E and B fields by factors of
804# epsilon and mu respectively, so their units can be found by
805# multiplying/dividing by the epsilon0 and mu0. The more complex
806# definitions below make it possible to use D_FIELD and E_FIELD to
807# convert between SI and CGS units for these dimensions.
808D_FIELD E_FIELD epsilon0 / epsilon0_SI # mu0_SI c^2 F / m
809H_FIELD B_FIELD / (mu0/mu0_SI)
810ELECTRIC_DIPOLE_MOMENT C m
811MAGNETIC_DIPOLE_MOMENT J / T
812POLARIZATION ELECTRIC_DIPOLE_MOMENT / VOLUME
813MAGNETIZATION MAGNETIC_DIPOLE_MOMENT / VOLUME
814ELECTRIC_POTENTIAL ENERGY / CHARGE #volt
815VOLTAGE ELECTRIC_POTENTIAL
816E_FLUX E_FIELD AREA
817D_FLUX D_FIELD AREA
818B_FLUX B_FIELD AREA
819H_FLUX H_FIELD AREA
820
821#
822# units derived easily from SI units
823#
824
825gram millikg
826gm gram
827g gram
828tonne 1000 kg
829t tonne
830metricton tonne
831sthene tonne m / s^2
832funal sthene
833pieze sthene / m^2
834quintal 100 kg
835bar 1e5 Pa # About 1 atm
836b bar
837vac millibar
838micron micrometer # One millionth of a meter
839bicron picometer # One brbillionth of a meter
840cc cm^3
841are 100 m^2
842a are
843liter 1000 cc # The liter was defined in 1901 as the
844oldliter 1.000028 dm^3 # space occupied by 1 kg of pure water at
845L liter # the temperature of its maximum density
846l liter # under a pressure of 1 atm. This was
847 # supposed to be 1000 cubic cm, but it
848 # was discovered that the original
849 # measurement was off. In 1964, the
850 # liter was redefined to be exactly 1000
851 # cubic centimeters.
852Ah amp hour # Unit of charge
853mho siemens # Inverse of ohm, hence ohm spelled backward
854galvat ampere # Named after Luigi Galvani
855angstrom 1e-10 m # Convenient for describing molecular sizes
856xunit xunit_cu # Used for measuring x-ray wavelengths.
857siegbahn xunit # Originally defined to be 1|3029.45 of
858xunit_cu 1.00207697e-13 m # the spacing of calcite planes at 18
859xunit_mo 1.00209952e-13 m # degC. It was intended to be exactly
860 # 1e-13 m, but was later found to be
861 # slightly off. Current usage is with
862 # reference to common x-ray lines, either
863 # the K-alpha 1 line of copper or the
864 # same line of molybdenum.
865angstromstar 1.00001495 angstrom # Defined by JA Bearden in 1965 to replace
866 # the X unit. The wavelength of the
867 # tungsten K alpha1 line was defined as
868 # exactly 0.20901 angstrom star, with the
869 # value chosen to try to make the new
870 # unit close to the angstrom.
871silicon_d220 1.920155716e-10 m # Silicon lattice spacing
872siliconlattice sqrt(8) silicon_d220# Silicon lattice parameter, (a), the side
873 # length of the unit cell for the diamond
874 # centered cubic structure of silicon.
875fermi 1e-15 m # Convenient for describing nuclear sizes
876 # Nuclear radius is from 1 to 10 fermis
877barn 1e-28 m^2 # Used to measure cross section for
878 # particle physics collision, said to
879 # have originated in the phrase "big as
880 # a barn".
881shed 1e-24 barn # Defined to be a smaller companion to the
882 # barn, but it's too small to be of
883 # much use.
884brewster micron^2/N # measures stress-optical coef
885diopter /m # measures reciprocal of lens focal length
886fresnel 1e12 Hz # occasionally used in spectroscopy
887shake 1e-8 sec
888svedberg 1e-13 s # Used for measuring the sedimentation
889 # coefficient for centrifuging.
890gamma microgram # Also used for 1e-9 tesla
891lambda microliter
892spat 1e12 m # Rarely used for astronomical measurements
893preece 1e13 ohm m # resistivity
894planck J s # action of one joule over one second
895sturgeon /henry # magnetic reluctance
896daraf 1/farad # elastance (farad spelled backwards)
897leo 10 m/s^2
898poiseuille N s / m^2 # viscosity
899mayer J/g K # specific heat
900mired / microK # reciprocal color temperature. The name
901 # abbreviates micro reciprocal degree.
902crocodile megavolt # used informally in UK physics labs
903metricounce 25 g
904mounce metricounce
905finsenunit 1e5 W/m^2 # Measures intensity of ultraviolet light
906 # with wavelength 296.7 nm.
907fluxunit 1e-26 W/m^2 Hz # Used in radio astronomy to measure
908 # the energy incident on the receiving
909 # body across a specified frequency
910 # bandwidth. [12]
911jansky fluxunit # K. G. Jansky identified radio waves coming
912Jy jansky # from outer space in 1931.
913flick W / cm^2 sr micrometer # Spectral radiance or irradiance
914pfu / cm^2 sr s # particle flux unit -- Used to measure
915 # rate at which particles are received by
916 # a spacecraft as particles per solid
917 # angle per detector area per second. [18]
918pyron cal_IT / cm^2 min # Measures heat flow from solar radiation,
919 # from Greek work "pyr" for fire.
920katal mol/sec # Measure of the amount of a catalyst. One
921kat katal # katal of catalyst enables the reaction
922 # to consume or produce one mol/sec.
923solarluminosity 382.8e24 W # A common yardstick for comparing the
924 # output of different stars.
925 # http://nssdc.gsfc.nasa.gov/planetary/factsheet/sunfact.html
926# at mean Earth-Sun distance
927solarirradiance solarluminosity / (4 pi sundist^2)
928solarconstant solarirradiance
929TSI solarirradiance # total solar irradiance
930
931#
932# time
933#
934
935sec s
936minute 60 s
937min minute
938hour 60 min
939hr hour
940day 24 hr
941d day
942da day
943week 7 day
944wk week
945sennight 7 day
946fortnight 14 day
947blink 1e-5 day # Actual human blink takes 1|3 second
948ce 1e-2 day
949cron 1e6 years
950watch 4 hours # time a sentry stands watch or a ship's
951 # crew is on duty.
952bell 1|8 watch # Bell would be sounded every 30 minutes.
953
954# French Revolutionary Time or Decimal Time. It was Proposed during
955# the French Revolution. A few clocks were made, but it never caught
956# on. In 1998 Swatch defined a time measurement called ".beat" and
957# sold some watches that displayed time in this unit.
958
959decimalhour 1|10 day
960decimalminute 1|100 decimalhour
961decimalsecond 1|100 decimalminute
962beat decimalminute # Swatch Internet Time
963
964#
965# angular measure
966#
967
968circle 2 pi radian
969degree 1|360 circle
970deg degree
971arcdeg degree
972arcmin 1|60 degree
973arcminute arcmin
974' arcmin
975arcsec 1|60 arcmin
976arcsecond arcsec
977" arcsec
978'' "
979rightangle 90 degrees
980quadrant 1|4 circle
981quintant 1|5 circle
982sextant 1|6 circle
983
984sign 1|12 circle # Angular extent of one sign of the zodiac
985turn circle
986revolution turn
987rev turn
988pulsatance radian / sec
989gon 1|100 rightangle # measure of grade
990grade gon
991centesimalminute 1|100 grade
992centesimalsecond 1|100 centesimalminute
993milangle 1|6400 circle # Official NIST definition.
994 # Another choice is 1e-3 radian.
995pointangle 1|32 circle # Used for reporting compass readings
996centrad 0.01 radian # Used for angular deviation of light
997 # through a prism.
998mas milli arcsec # Used by astronomers
999seclongitude circle (seconds/day) # Astronomers measure longitude
1000 # (which they call right ascension) in
1001 # time units by dividing the equator into
1002 # 24 hours instead of 360 degrees.
1003#
1004# Some geometric formulas
1005#
1006
1007circlearea(r) units=[m;m^2] range=[0,) pi r^2 ; sqrt(circlearea/pi)
1008spherevolume(r) units=[m;m^3] range=[0,) 4|3 pi r^3 ; \
1009 cuberoot(spherevolume/4|3 pi)
1010spherevol() spherevolume
1011square(x) range=[0,) x^2 ; sqrt(square)
1012
1013#
1014# Solid angle measure
1015#
1016
1017sphere 4 pi sr
1018squaredegree 1|180^2 pi^2 sr
1019squareminute 1|60^2 squaredegree
1020squaresecond 1|60^2 squareminute
1021squarearcmin squareminute
1022squarearcsec squaresecond
1023sphericalrightangle 1|8 sphere
1024octant 1|8 sphere
1025
1026#
1027# Concentration measures
1028#
1029
1030percent 0.01
1031% percent
1032mill 0.001 # Originally established by Congress in 1791
1033 # as a unit of money equal to 0.001 dollars,
1034 # it has come to refer to 0.001 in general.
1035 # Used by some towns to set their property
1036 # tax rate, and written with a symbol similar
1037 # to the % symbol but with two 0's in the
1038 # denominator. [18]
1039proof 1|200 # Alcohol content measured by volume at
1040 # 60 degrees Fahrenheit. This is a USA
1041 # measure. In Europe proof=percent.
1042ppm 1e-6
1043partspermillion ppm
1044ppb 1e-9
1045partsperbillion ppb # USA billion
1046ppt 1e-12
1047partspertrillion ppt # USA trillion
1048karat 1|24 # measure of gold purity
1049caratgold karat
1050gammil mg/l
1051basispoint 0.01 % # Used in finance
1052fine 1|1000 # Measure of gold purity
1053
1054# The pH scale is used to measure the concentration of hydronium (H3O+) ions in
1055# a solution. A neutral solution has a pH of 7 as a result of dissociated
1056# water molecules.
1057
1058pH(x) units=[1;mol/liter] range=(0,) 10^(-x) mol/liter ; (-log(pH liters/mol))
1059
1060
1061#
1062# Temperature
1063#
1064# Two types of units are defined: units for converting temperature differences
1065# and functions for converting absolute temperatures. Conversions for
1066# differences start with "deg" and conversions for absolute temperature start
1067# with "temp".
1068#
1069# If the temperature inside is 72 degrees Fahrenheit and you want to
1070# convert this to degrees Celsius then you need absolute temperature:
1071#
1072# You have: tempF(72)
1073# You want: tempC
1074# 22.222222
1075#
1076# If the temperature rose 72 degrees Fahrenheit during the chemical reaction
1077# then this is a temperature difference:
1078#
1079# You have: 72 degF
1080# You want: degC
1081# * 40
1082# / 0.025
1083#
1084
1085TEMPERATURE kelvin
1086TEMPERATURE_DIFFERENCE kelvin
1087
1088# In 1741 Anders Celsius introduced a temperature scale with water boiling at
1089# 0 degrees and freezing at 100 degrees at standard pressure. After his death
1090# the fixed points were reversed and the scale was called the centigrade
1091# scale. Due to the difficulty of accurately measuring the temperature of
1092# melting ice at standard pressure, the centigrade scale was replaced in 1954
1093# by the Celsius scale which is defined by subtracting 273.15 from the
1094# temperature in Kelvins. This definition differed slightly from the old
1095# centigrade definition, but the Kelvin scale depends on the triple point of
1096# water rather than a melting point, so it can be measured accurately.
1097
1098tempC(x) units=[1;K] domain=[-273.15,) range=[0,) \
1099 x K + stdtemp ; (tempC +(-stdtemp))/K
1100tempcelsius() tempC
1101degcelsius K
1102degC K
1103
1104# Fahrenheit defined his temperature scale by setting 0 to the coldest
1105# temperature he could produce in his lab with a salt water solution and by
1106# setting 96 degrees to body heat. In Fahrenheit's words:
1107#
1108# Placing the thermometer in a mixture of sal ammoniac or sea
1109# salt, ice, and water a point on the scale will be found which
1110# is denoted as zero. A second point is obtained if the same
1111# mixture is used without salt. Denote this position as 30. A
1112# third point, designated as 96, is obtained if the thermometer
1113# is placed in the mouth so as to acquire the heat of a healthy
1114# man." (D. G. Fahrenheit, Phil. Trans. (London) 33, 78, 1724)
1115
1116tempF(x) units=[1;K] domain=[-459.67,) range=[0,) \
1117 (x+(-32)) degF + stdtemp ; (tempF+(-stdtemp))/degF + 32
1118tempfahrenheit() tempF
1119degfahrenheit 5|9 degC
1120degF 5|9 degC
1121
1122
1123degreesrankine degF # The Rankine scale has the
1124degrankine degreesrankine # Fahrenheit degree, but its zero
1125degreerankine degF # is at absolute zero.
1126degR degrankine
1127tempR degrankine
1128temprankine degrankine
1129
1130tempreaumur(x) units=[1;K] domain=[-218.52,) range=[0,) \
1131 x degreaumur+stdtemp ; (tempreaumur+(-stdtemp))/degreaumur
1132degreaumur 10|8 degC # The Reaumur scale was used in Europe and
1133 # particularly in France. It is defined
1134 # to be 0 at the freezing point of water
1135 # and 80 at the boiling point. Reaumur
1136 # apparently selected 80 because it is
1137 # divisible by many numbers.
1138
1139degK K # "Degrees Kelvin" is forbidden usage.
1140tempK K # For consistency
1141
1142# Gas mark is implemented below but in a terribly ugly way. There is
1143# a simple formula, but it requires a conditional which is not
1144# presently supported.
1145#
1146# The formula to convert to degrees Fahrenheit is:
1147#
1148# 25 log2(gasmark) + k_f gasmark<=1
1149# 25 (gasmark-1) + k_f gasmark>=1
1150#
1151# k_f = 275
1152#
1153gasmark[degR] \
1154 .0625 634.67 \
1155 .125 659.67 \
1156 .25 684.67 \
1157 .5 709.67 \
1158 1 734.67 \
1159 2 759.67 \
1160 3 784.67 \
1161 4 809.67 \
1162 5 834.67 \
1163 6 859.67 \
1164 7 884.67 \
1165 8 909.67 \
1166 9 934.67 \
1167 10 959.67
1168
1169
1170# The Beaufort wind force scale was developed from 1805-1807 by Sir Francis
1171# Beaufort to categorize wind conditions at sea. It is normally defined from
1172# Beaufort 0, also called "Force 0," through Beaufort 12. Beaufort numbers
1173# 13-17 were later defined for tropical cyclones but are rarely used. The
1174# original Beaufort scale was qualitative and did not relate directly to wind
1175# speed. In 1906, George Simpson of the British Met Office fit wind-speed
1176# measurements to visual Beaufort estimates made from five coastal and inland
1177# stations in Britain. Simpson's formula was adopted by the World Meterological
1178# Organization in 1946 to produce a table, known as WMO Code 1100, giving mean
1179# (and min/max) wind speed equivalents at a height of 10 meters for each
1180# Beaufort number. This is the "operational" Beaufort scale that mariners
1181# use. Meterological and climatic researchers typically use a "scientific"
1182# Beaufort scale based on more recent and comprehensive fits. See Wallbrink and
1183# Cook, Historical Wind Speed Equivalents Of The Beaufort Scale, 1850-1950, at
1184# https://icoads.noaa.gov/reclaim/pdf/Hisklim13.pdf
1185#
1186beaufort_WMO1100(B) units=[1;m/s] domain=[0,17] range=[0,) \
1187 0.836 B^3|2 m/s; (beaufort_WMO1100 s / 0.836 m)^2|3
1188
1189beaufort(B) units=[1;m/s] domain=[0,17] range=[0,) \
1190 beaufort_WMO1100(B); ~beaufort_WMO1100(beaufort)
1191
1192# Units cannot handle wind chill or heat index because they are two-variable
1193# functions, but they are included here for your edification. Clearly these
1194# equations are the result of a model fitting operation.
1195#
1196# wind chill index (WCI) a measurement of the combined cooling effect of low
1197# air temperature and wind on the human body. The index was first defined
1198# by the American Antarctic explorer Paul Siple in 1939. As currently used
1199# by U.S. meteorologists, the wind chill index is computed from the
1200# temperature T (in deg F) and wind speed V (in mi/hr) using the formula:
1201# WCI = 0.0817(3.71 sqrt(V) + 5.81 - 0.25V)(T - 91.4) + 91.4.
1202# For very low wind speeds, below 4 mi/hr, the WCI is actually higher than
1203# the air temperature, but for higher wind speeds it is lower than the air
1204# temperature.
1205#
1206# heat index (HI or HX) a measure of the combined effect of heat and
1207# humidity on the human body. U.S. meteorologists compute the index
1208# from the temperature T (in deg F) and the relative humidity H (as a
1209# value from 0 to 1).
1210# HI = -42.379 + 2.04901523 T + 1014.333127 H - 22.475541 TH
1211# - .00683783 T^2 - 548.1717 H^2 + 0.122874 T^2 H + 8.5282 T H^2
1212# - 0.0199 T^2 H^2.
1213
1214#
1215# Physical constants
1216#
1217
1218# Basic constants
1219
1220pi 3.14159265358979323846
1221tau 2 pi
1222phi (sqrt(5)+1)/2
1223light c
1224coulombconst alpha hbar c / e^2 # Coulomb constant
1225k_C coulombconst # Gets overridden in CGS modes
1226k_C_SI alpha hbar_SI c_SI / e_SI^2
1227epsilon0_SI 1 / 4 pi k_C_SI # Vacuum electric permittivity
1228epsilon0 1 / 4 pi k_C # Also overridden in CGS modes
1229mu0_SI 1 / epsilon0_SI c_SI^2 # Vacuum magnetic permeability
1230mu0 1 / epsilon0 c^2 # Also overridden in CGS modes
1231Z0 4 pi k_C / c # Free space impedance
1232energy c^2 # Convert mass to energy
1233hbar h / 2 pi
1234hbar_SI h_SI / 2 pi
1235spin hbar
1236G_SI 6.67430e-11
1237G 6.67430e-11 N m^2 / kg^2 # Newtonian gravitational constant
1238
1239# Physico-chemical constants
1240
1241atomicmassunit_SI 1.66053906660e-27 # Unified atomic mass unit, defined as
1242atomicmassunit 1.66053906660e-27 kg # Unified atomic mass unit, defined as
1243u atomicmassunit # 1|12 of the mass of carbon 12.
1244amu atomicmassunit # The relationship N_A u = 1 g/mol
1245dalton u # is approximately, but not exactly
1246Da dalton # true (with the 2019 SI).
1247 # Previously the mole was defined to
1248 # make this relationship exact.
1249amu_chem 1.66026e-27 kg # 1|16 of the weighted average mass of
1250 # the 3 naturally occuring neutral
1251 # isotopes of oxygen
1252amu_phys 1.65981e-27 kg # 1|16 of the mass of a neutral
1253 # oxygen 16 atom
1254gasconstant k N_A # Molar gas constant (exact)
1255R gasconstant
1256kboltzmann boltzmann
1257molarvolume R stdtemp / atm # Volume occupied by one mole of an
1258V_m molarvolume # ideal gas at STP. (exact)
1259loschmidt avogadro / molarvolume # Molecules per cubic meter of an
1260n0 loschmidt # ideal gas at STP. Loschmidt did
1261 # work similar to Avogadro.
1262molarvolume_si N_A siliconlattice^3 / 8 # Volume of a mole of crystalline
1263 # silicon. The unit cell contains 8
1264 # silicon atoms and has a side
1265 # length of siliconlattice.
1266stefanboltzmann pi^2 k^4 / 60 hbar^3 c^2 # The power per area radiated by a
1267sigma stefanboltzmann # blackbody at temperature T is
1268 # given by sigma T^4. (exact)
1269wiendisplacement (h c/k)/4.9651142317442763 # Wien's Displacement Law gives
1270 # the frequency at which the
1271 # Planck spectrum has maximum
1272 # intensity. The relation is lambda
1273 # T = b where lambda is wavelength,
1274 # T is temperature and b is the Wien
1275 # displacement. This relation is
1276 # used to determine the temperature
1277 # of stars. The constant is the
1278 # solution to x=5(1-exp(-x)).
1279 # This expression has no experimental
1280 # error, and x is defined exactly
1281 # by the equation above, so it is
1282 # an exact definition.
1283K_J90 483597.9 GHz/V # Direct measurement of the volt is difficult. Until
1284K_J 2e/h # recently, laboratories kept Weston cadmium cells as
1285 # a reference, but they could drift. In 1987 the
1286 # CGPM officially recommended the use of the
1287 # Josephson effect as a laboratory representation of
1288 # the volt. The Josephson effect occurs when two
1289 # superconductors are separated by a thin insulating
1290 # layer. A "supercurrent" flows across the insulator
1291 # with a frequency that depends on the potential
1292 # applied across the superconductors. This frequency
1293 # can be very accurately measured. The Josephson
1294 # constant K_J relates the measured frequency to the
1295 # potential. Two values given, the conventional
1296 # (exact) value from 1990, which was used until the
1297 # 2019 SI revision, and the current exact value.
1298R_K90 25812.807 ohm # Measurement of the ohm also presents difficulties.
1299R_K h/e^2 # The old approach involved maintaining resistances
1300 # that were subject to drift. The new standard is
1301 # based on the Hall effect. When a current carrying
1302 # ribbon is placed in a magnetic field, a potential
1303 # difference develops across the ribbon. The ratio
1304 # of the potential difference to the current is
1305 # called the Hall resistance. Klaus von Klitzing
1306 # discovered in 1980 that the Hall resistance varies
1307 # in discrete jumps when the magnetic field is very
1308 # large and the temperature very low. This enables
1309 # accurate realization of the resistance h/e^2 in the
1310 # lab. The 1990 value was an exact conventional
1311 # value used until the SI revision in 2019. This value
1312 # did not agree with measurements. The new value
1313 # is exact.
1314
1315# The 2019 update to SI gives exact definitions for R_K and K_J. Previously
1316# the electromagnetic units were realized using the 1990 conventional values
1317# for these constants, and as a result, the standard definitions were in some
1318# sense outside of SI. The revision corrects this problem. The definitions
1319# below give the 1990 conventional values for the electromagnetic units in
1320# terms of 2019 SI.
1321
1322ampere90 (K_J90 R_K90 / K_J R_K) A
1323coulomb90 (K_J90 R_K90 / K_J R_K) C
1324farad90 (R_K90/R_K) F
1325henry90 (R_K/R_K90) H
1326ohm90 (R_K/R_K90) ohm
1327volt90 (K_J90/K_J) V
1328watt90 (K_J90^2 R_K90 / K_J^2 R_K) W
1329
1330# Various conventional values
1331
1332gravity 9.80665 m/s^2 # std acceleration of gravity (exact)
1333 # Established by the 3rd CGPM in
1334 # 1901. This is a nominal midrange
1335 # value, originally based on the
1336 # acceleration of a body at sea
1337 # level at 45 degrees latitude.
1338 # The value was actually determined
1339 # by measuring at the International
1340 # Bureau and correcting the
1341 # measurement by a theoretical
1342 # cofficient to get the 45 deg
1343 # latitude sea level value.
1344 # (Wikipedia: Standard gravity)
1345force gravity # use to turn masses into forces
1346atm 101325 Pa # Standard atmospheric pressure
1347atmosphere atm
1348Hg 13.5951 gram force / cm^3 # Standard weight of mercury (exact)
1349water gram force/cm^3 # Standard weight of water (exact)
1350waterdensity gram / cm^3 # Density of water
1351H2O water
1352wc water # water column
1353mach 331.46 m/s # speed of sound in dry air at STP
1354standardtemp 273.15 K # standard temperature
1355stdtemp standardtemp
1356normaltemp tempF(70) # for gas density, from NIST
1357normtemp normaltemp # Handbook 44
1358
1359# Weight of mercury and water at different temperatures using the standard
1360# force of gravity.
1361
1362Hg10C 13.5708 force gram / cm^3 # These units, when used to form
1363Hg20C 13.5462 force gram / cm^3 # pressure measures, are not accurate
1364Hg23C 13.5386 force gram / cm^3 # because of considerations of the
1365Hg30C 13.5217 force gram / cm^3 # revised practical temperature scale.
1366Hg40C 13.4973 force gram / cm^3
1367Hg60F 13.5574 force gram / cm^3
1368H2O0C 0.99987 force gram / cm^3
1369H2O5C 0.99999 force gram / cm^3
1370H2O10C 0.99973 force gram / cm^3
1371H2O15C 0.99913 force gram / cm^3
1372H2O18C 0.99862 force gram / cm^3
1373H2O20C 0.99823 force gram / cm^3
1374H2O25C 0.99707 force gram / cm^3
1375H2O50C 0.98807 force gram / cm^3
1376H2O100C 0.95838 force gram / cm^3
1377
1378# Atomic constants
1379
1380hartree 4.3597447222071e-18 J # Approximate electric potential energy
1381E_h hartree # of the hydrogen atom in its ground
1382 # state, and approximately twice its
1383 # ionization energy. The hartree
1384 # energy is traditionally defined as
1385 # coulombconst^2 m_e e^4 / hbar^2,
1386 # but it can be measured to greater
1387 # precision using the relationship
1388 # hartree = 2 h c Rinfinity
1389 # because Rinfinity is one of the
1390 # most accurately measured physical
1391 # constants. Because h and c are
1392 # exact we can choose either hartree
1393 # or Rinfinity from CODATA to use as
1394 # the primary value without
1395 # affecting the precision.
1396Rinfinity hartree / 2 h c # The wavelengths of a spectral series
1397R_H Rinfinity m_p / (m_e + m_p) # can be expressed as
1398 # 1/lambda = R (1/m^2 - 1/n^2).
1399 # where R is a number that various
1400 # slightly from element to element.
1401 # For hydrogen, R_H is the value,
1402 # and for heavy elements, the value
1403 # approaches Rinfinity, which can be
1404 # computed from
1405 # Rinfinity = m_e c alpha^2 / 2 h
1406 # with loss of precision. Rinfinity
1407 # is one of the most accurately
1408 # measured physical constants and is
1409 # known to higher precision than m_e
1410 # or alpha.
1411alpha 7.2973525693e-3 # The fine structure constant was
1412 # introduced to explain fine
1413 # structure visible in spectral
1414 # lines.
1415bohrradius hbar / alpha m_e c
1416a0 bohrradius
1417prout 185.5 keV # nuclear binding energy equal to 1|12
1418 # binding energy of the deuteron
1419conductancequantum e^2 / pi hbar
1420G0 conductancequantum
1421magneticfluxquantum pi hbar / e
1422Phi0 magneticfluxquantum
1423
1424# Particle radius
1425
1426electronradius coulombconst e^2 / electronmass c^2 # Classical
1427deuteronchargeradius 2.12799e-15 m
1428protonchargeradius 0.8751e-15 m
1429
1430# Masses of elementary particles
1431
1432electronmass_SI electronmass_u atomicmassunit_SI
1433electronmass_u 5.48579909065e-4
1434electronmass 5.48579909065e-4 u
1435m_e electronmass
1436muonmass 0.1134289259 u
1437m_mu muonmass
1438taumass 1.90754 u
1439m_tau taumass
1440protonmass 1.007276466621 u
1441m_p protonmass
1442neutronmass 1.00866491595 u
1443m_n neutronmass
1444deuteronmass 2.013553212745 u # Nucleus of deuterium, one
1445m_d deuteronmass # proton and one neutron
1446alphaparticlemass 4.001506179127 u # Nucleus of He, two protons
1447m_alpha alphaparticlemass # and two neutrons
1448tritonmass 3.01550071621 u # Nucleus of H3, one proton
1449m_t tritonmass # and two neutrons
1450helionmass 3.014932247175 u # Nucleus of He3, two protons
1451m_h helionmass # and one neutron
1452
1453# particle wavelengths: the compton wavelength of a particle is
1454# defined as h / m c where m is the mass of the particle.
1455
1456electronwavelength h / m_e c
1457lambda_C electronwavelength
1458protonwavelength h / m_p c
1459lambda_C,p protonwavelength
1460neutronwavelength h / m_n c
1461lambda_C,n neutronwavelength
1462muonwavelength h / m_mu c
1463lambda_C,mu muonwavelength
1464
1465# The g-factor or dimensionless magnetic moment is a quantity that
1466# characterizes the magnetic moment of a particle. The electron g-factor is
1467# one of the most precisely measured values in physics, with a relative
1468# uncertainty of 1.7e-13.
1469
1470g_d 0.8574382338 # Deuteron g-factor
1471g_e -2.00231930436256 # Electron g-factor
1472g_h -4.255250615 # Helion g-factor
1473g_mu -2.0023318418 # Muon g-factor
1474g_n -3.82608545 # Neutron g-factor
1475g_p 5.5856946893 # Proton g-factor
1476g_t 5.957924931 # Triton g-factor
1477
1478fermicoupling 1.1663787e-5 / GeV^2
1479
1480# Magnetic moments (derived from the more accurate g-factors)
1481#
1482# The magnetic moment is g * mu_ref * spin where in most cases
1483# the reference is the nuclear magneton, and all of the particles
1484# except the deuteron have spin 1/2.
1485
1486bohrmagneton e hbar / 2 electronmass # Reference magnetic moment for
1487mu_B bohrmagneton # the electron
1488mu_e g_e mu_B / 2 # Electron spin magnet moment
1489mu_mu g_mu mu_B m_e / 2 muonmass # Muon spin magnetic moment
1490nuclearmagneton mu_B m_e / protonmass # Convenient reference magnetic
1491mu_N nuclearmagneton # moment for heavy particles
1492mu_p g_p mu_N / 2 # Proton magnetic moment
1493mu_n g_n mu_N / 2 # Neutron magnetic moment
1494mu_d g_d mu_N # Deuteron magnetic moment, spin 1
1495mu_t g_t mu_N / 2 # Triton magnetic moment
1496mu_h g_h mu_N / 2 # Helion magnetic moment
1497
1498#
1499# Units derived from physical constants
1500#
1501
1502kgf kg force
1503technicalatmosphere kgf / cm^2
1504at technicalatmosphere
1505hyl kgf s^2 / m # Also gram-force s^2/m according to [15]
1506mmHg mm Hg
1507torr atm / 760 # The torr, named after Evangelista
1508 # Torricelli, and is very close to the mm Hg
1509tor Pa # Suggested in 1913 but seldom used [24].
1510 # Eventually renamed the Pascal. Don't
1511 # confuse the tor with the torr.
1512inHg inch Hg
1513inH2O inch water
1514mmH2O mm water
1515eV e V # Energy acquired by a particle with charge e
1516electronvolt eV # when it is accelerated through 1 V
1517lightyear c julianyear # The 365.25 day year is specified in
1518ly lightyear # NIST publication 811
1519lightsecond c s
1520lightminute c min
1521parsec au / tan(arcsec) # Unit of length equal to distance
1522pc parsec # from the Sun to a point having
1523 # heliocentric parallax of 1
1524 # arcsec (derived from parallax
1525 # second). A distant object with
1526 # parallax theta will be about
1527 # (arcsec/theta) parsecs from the
1528 # Sun (using the approximation
1529 # that tan(theta) = theta).
1530rydberg 1|2 hartree # Rydberg energy
1531crith 0.089885 gram # The crith is the mass of one
1532 # liter of hydrogen at standard
1533 # temperature and pressure.
1534amagat N_A / molarvolume # Used to measure gas as a number
1535amagatvolume mol molarvolume # density
1536lorentz bohrmagneton / h c # Used to measure the extent
1537 # that the frequency of light
1538 # is shifted by a magnetic field.
1539cminv h c / cm # Unit of energy used in infrared
1540invcm cminv # spectroscopy.
1541wavenumber 1/cm #
1542kcal_mol kcal_th / mol N_A # kcal/mol is used as a unit of
1543 # energy by physical chemists.
1544#
1545# CGS system based on centimeter, gram and second
1546#
1547
1548dyne cm gram / s^2 # force
1549dyn dyne
1550erg cm dyne # energy
1551poise gram / cm s # viscosity, honors Jean Poiseuille
1552P poise
1553rhe /poise # reciprocal viscosity
1554stokes cm^2 / s # kinematic viscosity
1555St stokes
1556stoke stokes
1557lentor stokes # old name
1558Gal cm / s^2 # acceleration, used in geophysics
1559galileo Gal # for Earth's gravitational field
1560 # (note that "gal" is for gallon
1561 # but "Gal" is the standard symbol
1562 # for the gal which is evidently a
1563 # shortened form of "galileo".)
1564barye dyne/cm^2 # pressure
1565barad barye # old name
1566kayser 1/cm # Proposed as a unit for wavenumber
1567balmer kayser # Even less common name than "kayser"
1568kine cm/s # velocity
1569bole g cm / s # momentum
1570pond gram force
1571glug gram force s^2 / cm # Mass which is accelerated at
1572 # 1 cm/s^2 by 1 gram force
1573darcy centipoise cm^2 / s atm # Measures permeability to fluid flow.
1574 # One darcy is the permeability of a
1575 # medium that allows a flow of cc/s
1576 # of a liquid of centipoise viscosity
1577 # under a pressure gradient of
1578 # atm/cm. Named for H. Darcy.
1579mobileohm cm / dyn s # mobile ohm, measure of mechanical
1580 # mobility
1581mechanicalohm dyn s / cm # mechanical resistance
1582acousticalohm dyn s / cm^5 # ratio of the sound pressure of
1583 # 1 dyn/cm^2 to a source of strength
1584 # 1 cm^3/s
1585ray acousticalohm
1586rayl dyn s / cm^3 # Specific acoustical resistance
1587eotvos 1e-9 Gal/cm # Change in gravitational acceleration
1588 # over horizontal distance
1589#
1590# Electromagnetic CGS Units
1591#
1592# For measuring electromagnetic quantities in SI, we introduce the new base
1593# dimension of current, define the ampere to measure current, and derive the
1594# other electromagnetic units from the ampere. With the CGS units one approach
1595# is to use the basic equations of electromagnetism to define units that
1596# eliminate constants from those equations. Coulomb's law has the form
1597#
1598# F = k_C q1 q2 / r^2
1599#
1600# where k_C is the Coulomb constant equal to 1|4 pi epsilon0 in SI units.
1601# Ampere's force law takes the form
1602#
1603# dF/dl = 2 k_A I1 I2 / r
1604#
1605# where k_A is the ampere constant. In the CGS system we force either k_C or
1606# k_A to 1 which then defines either a unit for charge or a unit for current.
1607# The other unit then becomes a derived unit. When k_C is 1 the ESU system
1608# results. When k_A is 1 the EMU system results. Note that these parameters
1609# are not independent of each other: Maxwell's equations indicate that
1610#
1611# k_C / k_A = c^2
1612#
1613# where c is the speed of light.
1614#
1615# One more choice is needed to define a complete system. Using Coulomb's law
1616# we define the electric field as the force per unit charge
1617#
1618# E = k_C 1 / r^2.
1619#
1620# But what about the magnetic field? It is derived from Ampere's law but we
1621# have the option of adding a proportionality constant, k_B, that may have
1622# dimensions:
1623#
1624# B = 2 k_A k_B I / r
1625#
1626# We can choose k_B = 1, which is done in the SI, ESU and EMU systems. But if
1627# instead we give k_B units of length/time then the magnetic field has
1628# the same units as the electric field. This choice leads to the Gaussian
1629# and Heaviside-Lorentz systems.
1630#
1631# The relations above are used to determine the dimensions, but the units are
1632# derived from the base units of CGS, not directly from those formulas. We
1633# will use the notation [unit] to refer to the dimension of the unit in
1634# brackets. This same process gives rise to the SI units such as the tesla,
1635# which is defined by
1636#
1637# [tesla] = [2 (1/4 pi c^2 epsilon0) amp / m] = [(mu0 / 2) amp / m]
1638#
1639# which gives kg / A s^2 as expected.
1640#
1641# References:
1642#
1643# Classical Electrodynamics by John David Jackson, 3rd edition.
1644# Cardarelli, Francois. 1999. Scientific Unit Conversion. 2nd ed. Trans.
1645# M.J. Shields. London: Springer-Verlag. ISBN 1-85233-043-0
1646#
1647#
1648# All of the CGS systems result in electromagnetic units that involve the square
1649# roots of the centimeter and gram. This requires a change in the primitive
1650# units.
1651#
1652
1653!var UNITS_SYSTEM esu emu gaussian gauss hlu
1654sqrt_cm !
1655sqrt_centimeter sqrt_cm
1656+m 100 sqrt_cm^2
1657sqrt_g !
1658sqrt_gram sqrt_g
1659+kg kilo sqrt_g^2
1660!endvar
1661
1662# Electrostatic CGS (ESU)
1663#
1664# This system uses the statcoulomb as the fundamental unit of charge, with
1665# derived units that parallel the conventional terminology but use the stat-
1666# prefix. The statcoulomb is derived from Coulomb's law based on the dyne
1667#
1668# dyne = statcoulomb^2 / k_C cm^2.
1669#
1670# and in the EUS system, k_C=1. The statcoulomb is also called the
1671# franklin or esu.
1672#
1673# The ESU system was specified by a committee report in 1873 and rarely used.
1674
1675statcoulomb sqrt(dyne cm^2/k_C) # Charge such that two charges
1676esu statcoulomb # of 1 statC separated by 1 cm
1677statcoul statcoulomb # exert a force of 1 dyne
1678statC statcoulomb
1679stC statcoulomb
1680franklin statcoulomb
1681Fr franklin
1682
1683!var UNITS_SYSTEM esu
1684!message CGS-ESU units selected
1685!prompt (ESU)
1686+coulombconst 1
1687+epsilon0 1 / k_C # SI relation: 1 / 4 pi k_C
1688+A 10 c_SI statamp
1689!endvar
1690
1691statampere statcoulomb / s
1692statamp statampere
1693statA statampere
1694stA statampere
1695statvolt dyne cm / statamp sec
1696statV statvolt
1697stV statvolt
1698statfarad statamp sec / statvolt
1699statF statfarad
1700stF statfarad
1701cmcapacitance statfarad
1702stathenry statvolt sec / statamp
1703statH stathenry
1704stH stathenry
1705statohm statvolt / statamp
1706stohm statohm
1707statmho /statohm
1708stmho statmho
1709statweber statvolt sec
1710statWb statweber
1711stWb statweber
1712stattesla statWb/cm^2 # Defined by analogy with SI; rarely
1713statT stattesla # if ever used
1714stT stattesla
1715debye 1e-10 statC angstrom # unit of electrical dipole moment
1716helmholtz debye/angstrom^2 # Dipole moment per area
1717jar 1000 statfarad # approx capacitance of Leyden jar
1718
1719# Electromagnetic CGS (EMU)
1720#
1721# The abampere is the fundamental unit of this system, with the derived units
1722# using the ab- prefix. The dimensions of the abampere are defined by assuming
1723# that k_A=1, which
1724#
1725# [dyne / cm] = [2 abampere^2 / cm]
1726#
1727# where the brackets indicate taking the dimension of the unit in base units
1728# and discarding any constant factors. This results in the definition from
1729# base CGS units of:
1730#
1731# abampere = sqrt(dyne).
1732#
1733# The abampere is also called the biot. The magnetic field unit (the gauss)
1734# follows from the assumption that k_B=1, which means
1735#
1736# B = 2 I / r,
1737#
1738# and hence the dimensions of the gauss are given by
1739#
1740# [gauss] = [2 abampere / cm]
1741#
1742# or rewriting in terms of the base units
1743#
1744# gauss = abampere / cm.
1745#
1746# The definition given below is different because it is in a form that
1747# gives a valid reduction for SI and ESU and still gives the correct
1748# result in EMU. (It can be derived from Faraday's law.)
1749#
1750# The EMU system was developed by Gauss and Weber and formalized as a system in
1751# a committee report by the British Association for the Advancement of Science
1752# in 1873.
1753
1754abampere 10 A # Current which produces a force of
1755abamp abampere # 2 dyne/cm between two infinitely
1756aA abampere # long wires that are 1 cm apart
1757abA abampere
1758biot abampere
1759Bi biot
1760
1761!var UNITS_SYSTEM emu
1762!message CGS-EMU units selected
1763!prompt (EMU)
1764+coulombconst c^2
1765+epsilon0 1 / k_C # SI relation: 1 / 4 pi k_C
1766+abampere sqrt(dyne)
1767+A 0.1 abamp
1768!endvar
1769
1770abcoulomb abamp sec
1771abcoul abcoulomb
1772abC abcoulomb
1773abfarad abampere sec / abvolt
1774abF abfarad
1775abhenry abvolt sec / abamp
1776abH abhenry
1777abvolt dyne cm / abamp sec
1778abV abvolt
1779abohm abvolt / abamp
1780abmho /abohm
1781maxwell erg / abamp # Also called the "line"
1782Mx maxwell
1783gauss maxwell / cm^2 # The magnetic field 2 cm from a wire
1784Gs gauss # carrying a current of 1 abampere
1785oersted gauss / mu0 # From the relation H = B / mu
1786Oe oersted
1787gilbert gauss cm / mu0
1788Gb gilbert
1789Gi gilbert
1790unitpole 4 pi maxwell # unit magnetic pole
1791emu erg/gauss # "electro-magnetic unit", a measure of
1792 # magnetic moment, often used as emu/cm^3
1793 # to specify magnetic moment density.
1794
1795# Electromagnetic CGS (Gaussian)
1796#
1797# The Gaussian system uses the statcoulomb and statamp from the ESU system
1798# derived by setting k_C=1, but it defines the magnetic field unit differently
1799# by taking k_B=c instead of k_B=1. As noted above, k_C and k_A are not
1800# independent. With k_C=1 we must have k_A=c^-2. This results in the magnetic
1801# field unit, the gauss, having dimensions give by:
1802#
1803# [gauss] = [2 (c^-2) c statamp / cm] = [statamp / c cm]
1804#
1805# We then define the gauss using base CGS units to obtain
1806#
1807# gauss = statamp / ((cm/s) cm) = statcoulomb / cm^2.
1808#
1809# Note that this definition happens to give the same result as the definition
1810# for the EMU system, so the definitions of the gauss are consistent.
1811#
1812# This definition gives the same dimensions for the E and B fields and was also
1813# known as the "symmetric system". This system was proposed by Hertz in 1888.
1814
1815!var UNITS_SYSTEM gaussian gauss
1816!message CGS-Gaussian units selected
1817!prompt (Gaussian)
1818!endvar
1819!var UNITS_SYSTEM gaussian gauss natural-gauss
1820+coulombconst 1
1821+A 10 c_SI statamp
1822 # Some SI-based definitions need re-scaling
1823 # by factors of "c" and/or "4 pi":
1824+epsilon0 1 / k_C # SI relation: 1 / 4 pi k_C
1825+mu0 1 / epsilon0 # SI relation: 1 / epsilon0 c^2
1826+bohrmagneton (e hbar / 2 electronmass) / c
1827+magneticfluxquantum c (pi hbar / e)
1828+maxwell c (erg / abamp)
1829+weber c (J / A)
1830!endvar
1831
1832# Electromagnetic CGS (Heaviside-Lorentz)
1833
1834# The Heaviside-Lorentz system is similar to the Gaussian system, but it is
1835# "rationalized" so that factors of 4 pi do not appear in Maxwell's equations.
1836# The SI system is similarly rationalized, but the other CGS systems are not.
1837#
1838# The factor of 4 pi appears instead in Coulomb's law, so in this system
1839# k_C = 1 / 4 pi, which means the charge unit is defined by
1840#
1841# dyne = (1 / 4 pi) hlu_charge^2 / cm^2.
1842#
1843# Since we have the leading constant of (1 / 4pi) the numerical value of the
1844# charge number is larger by sqrt(4pi), which in turns means that the HLU
1845# charge unit is smaller by this multiple. But note that the dimensions of the
1846# charge unit are the same as the Gaussian system, so both systems measure
1847# charge with cm^(3/2) g^(1/2) / s, but the amount of charge for this dimension
1848# differs by a factor of sqrt(4pi) between the two systems.
1849#
1850# Ampere's law for the Heaviside-Lorentz system has the form
1851#
1852# B = 1/(2 pi c) * I/r
1853
1854# The Heaviside-Lorentz system does not appear to have any named units, so we
1855# use "hlu" for "Heaviside-Lorentz unit" so we can define values for the basic
1856# units in this system.
1857
1858hlu_charge statcoulomb / sqrt(4 pi)
1859hlu_current hlu_charge / sec
1860hlu_volt erg / hlu_charge
1861hlu_efield hlu_volt / cm
1862hlu_bfield sqrt(4 pi) gauss
1863
1864!var UNITS_SYSTEM hlu
1865!message CGS-Heaviside-Lorentz Units selected
1866!prompt (HLU)
1867!endvar
1868!var UNITS_SYSTEM hlu natural planck planck-red
1869+coulombconst 1 / 4 pi
1870+A 10 c_SI statamp
1871 # Some SI-based magnetism definitions
1872 # need re-scaling by factors of "c":
1873+mu0 1 / epsilon0 # SI relation: 1 / epsilon0 c^2
1874+bohrmagneton (e hbar / 2 electronmass) / c
1875+magneticfluxquantum c (pi hbar / e)
1876+weber c (J / A)
1877+maxwell c (erg / abamp)
1878!endvar
1879
1880# "Natural units" (high energy physics and cosmology)
1881#
1882# In particle physics "natural units" (which don't seem to have a more specific
1883# name) are defined by setting hbar = c = boltzmann = 1. In this system the
1884# electron volt is the only base unit. The electromagnetic units can be
1885# derived from the rationalized Heaviside-Lorentz units or from Gaussian units.
1886# The default form is the rationalized HLU derived version.
1887#
1888# The basic mechanical and thermodynamic definitions for the natural
1889# units are identical in both systems. These appear below. The
1890# natural-gauss system has additional electromagnetic redefinitions
1891# that appear above in the "Electromagnetic CGS (Gaussian)" Section.
1892
1893# These are the Heaviside-Lorentz natural units
1894
1895natural_energy eV
1896natural_charge e / sqrt(4 pi alpha)
1897natural_time hbar / natural_energy
1898natural_length natural_time c
1899natural_mass natural_energy / c^2
1900natural_temp natural_energy / boltzmann
1901natural_force natural_energy / natural_length
1902natural_power natural_energy / natural_time
1903natural_volt natural_energy / natural_charge
1904natural_Efield natural_volt / natural_length
1905natural_Bfield natural_Efield / c
1906natural_current natural_charge / natural_time
1907
1908!var UNITS_SYSTEM natural
1909!message Natural units selected (Heavyside-Lorentz based)
1910!prompt (natural)
1911!endvar
1912
1913!var UNITS_SYSTEM natural-gauss
1914!message Natural units selected (Gaussian based)
1915!prompt (natgauss)
1916!endvar
1917
1918# These definitions are the same in both natural unit systems
1919
1920!var UNITS_SYSTEM natural natural-gauss
1921+eV !
1922+h 2 pi
1923+c 1
1924+boltzmann 1
1925+m e_SI / hbar_SI c_SI eV
1926+kg (c_SI^2 / e_SI) eV
1927+s e_SI / hbar_SI eV
1928+K (k_SI / e_SI) eV
1929!endvar
1930
1931#
1932# Planck units
1933#
1934# Planck units are a set of "natural" units based on physical constants c, G,
1935# hbar, boltzmann's constant, and epsilon0, often used when working with
1936# gravitational theory. In planck units, all quantities are dimensionless.
1937# Some variations are possible for exactly how the units are defined. We
1938# provide two variations, the rationalized planck units and the
1939# rationalized-reduced planck units.
1940#
1941# In both forms the units are defined by c = hbar = boltzmann = 1.
1942# But the choice of rationalized and reduced affects how epsilon0 and G
1943# are treated.
1944#
1945# In the "rationalized" units, factors of 4 pi do not appear in Maxwell's
1946# equation, and Coulomb's law bears a factor of 1/4 pi. See the section on
1947# the Heaviside-Lorentz units for more about this. The choice of rationalized
1948# units means that epsilon0 = 1. (In the unrationalized case, which is not
1949# supported, 1/(4 pi epsilon0) = 1.)
1950#
1951# The "reduced" units similarly are defined to eliminate factors of 8 pi
1952# from the Einstein field equations for gravitation. With reduced units
1953# we set 8 pi G = 1 and with the unreduced units, simply G = 1.
1954
1955# Rationalized, unreduced planck units
1956
1957planckmass sqrt(hbar c / G)
1958m_P planckmass
1959planckenergy planckmass c^2
1960E_P planckenergy
1961plancktime hbar / planckenergy
1962t_P plancktime
1963plancklength plancktime c
1964l_P plancklength
1965plancktemperature planckenergy / k
1966T_P plancktemperature
1967planckforce planckenergy / plancklength
1968planckcharge sqrt(epsilon0 hbar c)
1969planckcurrent planckcharge / plancktime
1970planckvolt planckenergy / planckcharge
1971planckEfield planckvolt / plancklength
1972planckBfield planckEfield / c
1973
1974# Rationalized, reduced planck units
1975
1976planckmass_red sqrt(hbar c / 8 pi G)
1977planckenergy_red planckmass_red c^2
1978plancktime_red hbar / planckenergy_red
1979plancklength_red plancktime_red c
1980plancktemperature_red planckenergy_red / k
1981planckforce_red planckenergy_red / plancklength_red
1982planckcharge_red sqrt(epsilon0 hbar c)
1983planckcurrent_red planckcharge_red / plancktime_red
1984planckvolt_red planckenergy_red / planckcharge_red
1985planckEfield_red planckvolt_red / plancklength_red
1986planckBfield_red planckEfield_red /c
1987
1988
1989!var UNITS_SYSTEM planck
1990!message Planck units selected
1991!prompt (planck)
1992+c 1
1993+h 2 pi
1994+G 1
1995+boltzmann 1
1996+kg sqrt(G_SI / hbar_SI c_SI)
1997+s c_SI^2 / hbar_SI kg
1998+m s / c_SI
1999+K k_SI / hbar_SI s
2000!endvar
2001
2002
2003!var UNITS_SYSTEM planck-red
2004!message Reduced planck units selected
2005!prompt (planck reduced)
2006+c 1
2007+h 2 pi
2008+G 1/8 pi
2009+boltzmann 1
2010+kg sqrt(8 pi G_SI / hbar_SI c_SI)
2011+s c_SI^2 / hbar_SI kg
2012+m s / c_SI
2013+K k_SI / hbar_SI s
2014!endvar
2015
2016#
2017# Some historical electromagnetic units
2018#
2019
2020intampere 0.999835 A # Defined as the current which in one
2021intamp intampere # second deposits .001118 gram of
2022 # silver from an aqueous solution of
2023 # silver nitrate.
2024intfarad 0.999505 F
2025intvolt 1.00033 V
2026intohm 1.000495 ohm # Defined as the resistance of a
2027 # uniform column of mercury containing
2028 # 14.4521 gram in a column 1.063 m
2029 # long and maintained at 0 degC.
2030daniell 1.042 V # Meant to be electromotive force of a
2031 # Daniell cell, but in error by .04 V
2032faraday N_A e mol # Charge that must flow to deposit or
2033faraday_phys 96521.9 C # liberate one gram equivalent of any
2034faraday_chem 96495.7 C # element. (The chemical and physical
2035faradayconst N_A e # values are off slightly from what is
2036 # obtained by multiplying by amu_chem
2037 # or amu_phys. These values are from
2038 # a 1991 NIST publication.) Note that
2039 # there is also a Faraday constant,
2040 # which has units of C/mol.
2041kappline 6000 maxwell # Named by and for Gisbert Kapp
2042siemensunit 0.9534 ohm # Resistance of a meter long column of
2043 # mercury with a 1 mm cross section.
2044#
2045# Printed circuit board units.
2046#
2047# Iowa State University Center for Nondestructive Evaluation
2048# Electrical Conductivity and Resistivity
2049# https://www.nde-ed.org/Physics/Materials/Physical_Chemical/Electrical.xhtml
2050#
2051# Conductivity is often expressed as a percentage of IACS. A copper wire a
2052# meter long with a 1 mm^2 cross section has a resistance of 1|58 ohm at
2053# 20 deg C. Copper density also has a standard IACS value at that temperature.
2054#
2055
2056copperconductivity 58 siemens m / mm^2 # A wire a meter long with
2057IACS copperconductivity # a 1 mm^2 cross section
2058copperdensity 8.89 g/cm^3 # The "ounce" measures the
2059ouncecopper oz / ft^2 copperdensity # thickness of copper used
2060ozcu ouncecopper # in circuitboard fabrication
2061
2062#
2063# Photometric units
2064#
2065
2066LUMINOUS_INTENSITY candela
2067LUMINOUS_FLUX lumen
2068LUMINOUS_ENERGY talbot
2069ILLUMINANCE lux
2070EXITANCE lux
2071
2072candle 1.02 candela # Standard unit for luminous intensity
2073hefnerunit 0.9 candle # in use before candela
2074hefnercandle hefnerunit #
2075violle 20.17 cd # luminous intensity of 1 cm^2 of
2076 # platinum at its temperature of
2077 # solidification (2045 K)
2078
2079lumen cd sr # Luminous flux (luminous energy per
2080lm lumen # time unit)
2081
2082talbot lumen s # Luminous energy
2083lumberg talbot # References give these values for
2084lumerg talbot # lumerg and lumberg both. Note that
2085 # a paper from 1948 suggests that
2086 # lumerg should be 1e-7 talbots so
2087 # that lumergs/erg = talbots/joule.
2088 # lumerg = luminous erg
2089lux lm/m^2 # Illuminance or exitance (luminous
2090lx lux # flux incident on or coming from
2091phot lumen / cm^2 # a surface)
2092ph phot #
2093footcandle lumen/ft^2 # Illuminance from a 1 candela source
2094 # at a distance of one foot
2095metercandle lumen/m^2 # Illuminance from a 1 candela source
2096 # at a distance of one meter
2097
2098mcs metercandle s # luminous energy per area, used to
2099 # measure photographic exposure
2100
2101nox 1e-3 lux # These two units were proposed for
2102skot 1e-3 apostilb # measurements relating to dark adapted
2103 # eyes.
2104# Luminance measures
2105
2106LUMINANCE nit
2107
2108nit cd/m^2 # Luminance: the intensity per projected
2109stilb cd / cm^2 # area of an extended luminous source.
2110sb stilb # (nit is from latin nitere = to shine.)
2111
2112apostilb cd/pi m^2
2113asb apostilb
2114blondel apostilb # Named after a French scientist.
2115
2116# Equivalent luminance measures. These units are units which measure
2117# the luminance of a surface with a specified exitance which obeys
2118# Lambert's law. (Lambert's law specifies that luminous intensity of
2119# a perfectly diffuse luminous surface is proportional to the cosine
2120# of the angle at which you view the luminous surface.)
2121
2122equivalentlux cd / pi m^2 # luminance of a 1 lux surface
2123equivalentphot cd / pi cm^2 # luminance of a 1 phot surface
2124lambert cd / pi cm^2
2125footlambert cd / pi ft^2
2126
2127# The bril is used to express "brilliance" of a source of light on a
2128# logarithmic scale to correspond to subjective perception. An increase of 1
2129# bril means doubling the luminance. A luminance of 1 lambert is defined to
2130# have a brilliance of 1 bril.
2131
2132bril(x) units=[1;lambert] 2^(x+-100) lamberts ;log2(bril/lambert)+100
2133
2134# Some luminance data from the IES Lighting Handbook, 8th ed, 1993
2135
2136sunlum 1.6e9 cd/m^2 # at zenith
2137sunillum 100e3 lux # clear sky
2138sunillum_o 10e3 lux # overcast sky
2139sunlum_h 6e6 cd/m^2 # value at horizon
2140skylum 8000 cd/m^2 # average, clear sky
2141skylum_o 2000 cd/m^2 # average, overcast sky
2142moonlum 2500 cd/m^2
2143
2144#
2145# Photographic Exposure Value
2146# This section by Jeff Conrad (jeff_conrad@msn.com)
2147#
2148# The Additive system of Photographic EXposure (APEX) proposed in ASA
2149# PH2.5-1960 was an attempt to simplify exposure determination for people who
2150# relied on exposure tables rather than exposure meters. Shortly thereafter,
2151# nearly all cameras incorporated exposure meters, so the APEX system never
2152# caught on, but the concept of exposure value remains in use. Though given as
2153# 'Ev' in ASA PH2.5-1960, it is now more commonly indicated by 'EV'. EV is
2154# related to exposure parameters by
2155#
2156# A^2 LS ES
2157# 2^EV = --- = -- = --
2158# t K C
2159#
2160# Where
2161# A = Relative aperture (f-number)
2162# t = Exposure time in seconds
2163# L = Scene luminance in cd/m2
2164# E = Scene illuminance in lux
2165# S = Arithmetic ISO speed
2166# K = Reflected-light meter calibration constant
2167# C = Incident-light meter calibration constant
2168#
2169# Strictly, an exposure value is a combination of aperture and exposure time,
2170# but it's also commonly used to indicate luminance (or illuminance).
2171# Conversion to luminance or illuminance units depends on the ISO speed and the
2172# meter calibration constant. Common practice is to use an ISO speed of 100.
2173# Calibration constants vary among camera and meter manufacturers: Canon,
2174# Nikon, and Sekonic use a value of 12.5 for reflected-light meters, while
2175# Kenko (formerly Minolta) and Pentax use a value of 14. Kenko and Sekonic use
2176# a value of 250 for incident-light meters with flat receptors.
2177#
2178# The values for in-camera meters apply only averaging, weighted-averaging, or
2179# spot metering--the multi-segment metering incorporated in most current
2180# cameras uses proprietary algorithms that evaluate many factors related to the
2181# luminance distribution of what is being metered; they are not amenable to
2182# simple conversions, and are usually not disclosed by the manufacturers.
2183
2184s100 100 / lx s # ISO 100 speed
2185iso100 s100
2186
2187# Reflected-light meter calibration constant with ISO 100 speed
2188
2189k1250 12.5 (cd/m2) / lx s # For Canon, Nikon, and Sekonic
2190k1400 14 (cd/m2) / lx s # For Kenko (Minolta) and Pentax
2191
2192# Incident-light meter calibration constant with ISO 100 film
2193
2194c250 250 lx / lx s # flat-disc receptor
2195
2196# Exposure value to scene luminance with ISO 100 imaging media
2197
2198# For Kenko (Minolta) or Pentax
2199#ev100(x) units=[;cd/m^2] range=(0,) 2^x k1400 / s100; log2(ev100 s100/k1400)
2200# For Canon, Nikon, or Sekonic
2201ev100(x) units=[1;cd/m^2] range=(0,) 2^x k1250 / s100; log2(ev100 s100/k1250)
2202EV100() ev100
2203
2204# Exposure value to scene illuminance with ISO 100 imaging media
2205
2206iv100(x) units=[1;lx] range=(0,) 2^x c250 / s100; log2(iv100 s100 / c250)
2207
2208# Other Photographic Exposure Conversions
2209#
2210# As part of APEX, ASA PH2.5-1960 proposed several logarithmic quantities
2211# related by
2212#
2213# Ev = Av + Tv = Bv + Sv
2214#
2215# where
2216# Av = log2(A^2) Aperture value
2217# Tv = log2(1/t) Time value
2218# Sv = log2(N Sx) Speed value
2219# Bv = log2(B S / K) Luminance ("brightness") value
2220# Iv = log2(I S / C) Illuminance value
2221#
2222# and
2223# A = Relative aperture (f-number)
2224# t = Exposure time in seconds
2225# Sx = Arithmetic ISO speed in 1/lux s
2226# B = luminance in cd/m2
2227# I = luminance in lux
2228
2229# The constant N derives from the arcane relationship between arithmetic
2230# and logarithmic speed given in ASA PH2.5-1960. That relationship
2231# apparently was not obvious--so much so that it was thought necessary
2232# to explain it in PH2.12-1961. The constant has had several values
2233# over the years, usually without explanation for the changes. Although
2234# APEX had little impact on consumer cameras, it has seen a partial
2235# resurrection in the Exif standards published by the Camera & Imaging
2236# Products Association of Japan.
2237
2238#N_apex 2^-1.75 lx s # precise value implied in ASA PH2.12-1961,
2239 # derived from ASA PH2.5-1960.
2240#N_apex 0.30 lx s # rounded value in ASA PH2.5-1960,
2241 # ASA PH2.12-1961, and ANSI PH2.7-1986
2242#N_apex 0.3162 lx s # value in ANSI PH2.7-1973
2243N_exif 1|3.125 lx s # value in Exif 2.3 (2010), making Sv(5) = 100
2244K_apex1961 11.4 (cd/m2) / lx s # value in ASA PH2.12-1961
2245K_apex1971 12.5 (cd/m2) / lx s # value in ANSI PH3.49-1971; more common
2246C_apex1961 224 lx / lx s # value in PH2.12-1961 (20.83 for I in
2247 # footcandles; flat sensor?)
2248C_apex1971 322 lx / lx s # mean value in PH3.49-1971 (30 +/- 5 for I in
2249 # footcandles; hemispherical sensor?)
2250N_speed N_exif
2251K_lum K_apex1971
2252C_illum C_apex1961
2253
2254# Units for Photographic Exposure Variables
2255#
2256# Practical photography sometimes pays scant attention to units for exposure
2257# variables. In particular, the "speed" of the imaging medium is treated as if
2258# it were dimensionless when it should have units of reciprocal lux seconds;
2259# this practice works only because "speed" is almost invariably given in
2260# accordance with international standards (or similar ones used by camera
2261# manufacturers)--so the assumed units are invariant. In calculating
2262# logarithmic quantities--especially the time value Tv and the exposure value
2263# EV--the units for exposure time ("shutter speed") are often ignored; this
2264# practice works only because the units of exposure time are assumed to be in
2265# seconds, and the missing units that make the argument to the logarithmic
2266# function dimensionless are silently provided.
2267#
2268# In keeping with common practice, the definitions that follow treat "speeds"
2269# as dimensionless, so ISO 100 speed is given simply as '100'. When
2270# calculating the logarithmic APEX quantities Av and Tv, the definitions
2271# provide the missing units, so the times can be given with any appropriate
2272# units. For example, giving an exposure time of 1 minute as either '1 min' or
2273# '60 s' will result in Tv of -5.9068906.
2274#
2275# Exposure Value from f-number and Exposure Time
2276#
2277# Because nonlinear unit conversions only accept a single quantity,
2278# there is no direct conversion from f-number and exposure time to
2279# exposure value EV. But the EV can be obtained from a combination of
2280# Av and Tv. For example, the "sunny 16" rule states that correct
2281# exposure for a sunlit scene can achieved by using f/16 and an exposure
2282# time equal to the reciprocal of the ISO speed in seconds; this can be
2283# calculated as
2284#
2285# ~Av(16) + ~Tv(1|100 s),
2286#
2287# which gives 14.643856. These conversions may be combined with the
2288# ev100 conversion:
2289#
2290# ev100(~Av(16) + ~Tv(1|100 s))
2291#
2292# to yield the assumed average scene luminance of 3200 cd/m^2.
2293
2294# convert relative aperture (f-number) to aperture value
2295Av(A) units=[1;1] domain=[-2,) range=[0.5,) 2^(A/2); 2 log2(Av)
2296# convert exposure time to time value
2297Tv(t) units=[1;s] range=(0,) 2^(-t) s; log2(s / Tv)
2298# convert logarithmic speed Sv in ASA PH2.5-1960 to ASA/ISO arithmetic speed;
2299# make arithmetic speed dimensionless
2300# 'Sv' conflicts with the symbol for sievert; you can uncomment this function
2301# definition if you don't need that symbol
2302#Sv(S) units=[1;1] range=(0,) 2^S / (N_speed/lx s); log2((N_speed/lx s) Sv)
2303Sval(S) units=[1;1] range=(0,) 2^S / (N_speed/lx s); log2((N_speed/lx s) Sval)
2304
2305# convert luminance value Bv in ASA PH2.12-1961 to luminance
2306Bv(x) units=[1;cd/m^2] range=(0,) \
2307 2^x K_lum N_speed ; log2(Bv / (K_lum N_speed))
2308
2309# convert illuminance value Iv in ASA PH2.12-1961 to illuminance
2310Iv(x) units=[1;lx] range=(0,) \
2311 2^x C_illum N_speed ; log2(Iv / (C_illum N_speed))
2312
2313# convert ASA/ISO arithmetic speed Sx to ASA logarithmic speed in
2314# ASA PH2.5-1960; make arithmetic speed dimensionless
2315Sx(S) units=[1;1] domain=(0,) \
2316 log2((N_speed/lx s) S); 2^Sx / (N_speed/lx s)
2317
2318# convert DIN speed/ISO logarithmic speed in ISO 6:1993 to arithmetic speed
2319# for convenience, speed is treated here as if it were dimensionless
2320Sdeg(S) units=[1;1] range=(0,) 10^((S - 1) / 10) ; (1 + 10 log(Sdeg))
2321Sdin() Sdeg
2322
2323# Numerical Aperture and f-Number of a Lens
2324#
2325# The numerical aperture (NA) is given by
2326#
2327# NA = n sin(theta)
2328#
2329# where n is the index of refraction of the medium and theta is half
2330# of the angle subtended by the aperture stop from a point in the image
2331# or object plane. For a lens in air, n = 1, and
2332#
2333# NA = 0.5 / f-number
2334#
2335# convert NA to f-number
2336numericalaperture(x) units=[1;1] domain=(0,1] range=[0.5,) \
2337 0.5 / x ; 0.5 / numericalaperture
2338NA() numericalaperture
2339#
2340# convert f-number to itself; restrict values to those possible
2341fnumber(x) units=[1;1] domain=[0.5,) range=[0.5,) x ; fnumber
2342
2343# Referenced Photographic Standards
2344#
2345# ASA PH-2.5-1960. USA Standard, Method for Determining (Monochrome,
2346# Continuous-Tone) Speed of Photographic Negative Materials.
2347# ASA PH2.12-1961. American Standard, General-Purpose Photographic
2348# Exposure Meters (photoelectric type).
2349# ANSI PH3.49-1971. American National Standard for general-purpose
2350# photographic exposure meters (photoelectric type).
2351# ANSI PH2.7-1973. American National Standard Photographic Exposure Guide.
2352# ANSI PH2.7-1986. American National Standard for Photography --
2353# Photographic Exposure Guide.
2354# CIPA DC-008-2010. Exchangeable image file format for digital still
2355# cameras: Exif Version 2.3
2356# ISO 6:1993. International Standard, Photography -- Black-and-white
2357# pictorial still camera negative film/process systems --
2358# Determination of ISO Speed.
2359
2360
2361#
2362# Astronomical time measurements
2363#
2364# Astronomical time measurement is a complicated matter. The length of the
2365# true day at a given place can be 21 seconds less than 24 hours or 30 seconds
2366# over 24 hours. The two main reasons for this are the varying speed of
2367# Earth in its elliptical orbit and the fact that the Sun moves on the ecliptic
2368# instead of along the celestial equator. To devise a workable system for time
2369# measurement, Simon Newcomb (1835-1909) used a fictitious "mean Sun".
2370# Consider a first fictitious Sun traveling along the ecliptic at a constant
2371# speed and coinciding with the true Sun at perigee and apogee. Then
2372# considering a second fictitious Sun traveling along the celestial equator at
2373# a constant speed and coinciding with the first fictitious Sun at the
2374# equinoxes. The second fictitious Sun is the "mean Sun". From this equations
2375# can be written out to determine the length of the mean day, and the tropical
2376# year. The length of the second was determined based on the tropical year
2377# from such a calculation and was officially used from 1960-1967 until atomic
2378# clocks replaced astronomical measurements for a standard of time. All of the
2379# values below give the mean time for the specified interval.
2380#
2381# See "Mathematical Astronomy Morsels" by Jean Meeus for more details
2382# and a description of how to compute the correction to mean time.
2383#
2384
2385TIME second
2386
2387anomalisticyear 365.2596 days # The time between successive
2388 # perihelion passages of
2389 # Earth.
2390siderealyear 365.256360417 day # The time for Earth to make
2391 # one revolution around the Sun
2392 # relative to the stars.
2393tropicalyear 365.242198781 day # The time needed for the mean Sun
2394 # as defined above to increase
2395 # its longitude by 360 degrees.
2396 # Most references defined the
2397 # tropical year as the interval
2398 # between vernal equinoxes, but
2399 # this is misleading. The length
2400 # of the season changes over time
2401 # because of the eccentricity of
2402 # Earth's orbit. The time
2403 # between vernal equinoxes is
2404 # approximately 365.24237 days
2405 # around the year 2000. See
2406 # "Mathematical Astronomy
2407 # Morsels" for more details.
2408eclipseyear 346.62 days # The line of nodes is the
2409 # intersection of the plane of
2410 # Earth's orbit around the Sun
2411 # with the plane of the Moon's
2412 # orbit around Earth. Eclipses
2413 # can only occur when the Moon
2414 # and Sun are close to this
2415 # line. The line rotates and
2416 # appearances of the Sun on the
2417 # line of nodes occur every
2418 # eclipse year.
2419saros 223 synodicmonth # The Earth, Moon and Sun appear in
2420 # the same arrangement every
2421 # saros, so if an eclipse occurs,
2422 # then one saros later, a similar
2423 # eclipse will occur. (The saros
2424 # is close to 19 eclipse years.)
2425 # The eclipse will occur about
2426 # 120 degrees west of the
2427 # preceding one because the
2428 # saros is not an even number of
2429 # days. After 3 saros, an
2430 # eclipse will occur at
2431 # approximately the same place.
2432solarday day # Time from noon to noon
2433siderealday 86164.09054 s # The sidereal day is the interval
2434siderealhour 1|24 siderealday # between two successive transits
2435siderealminute 1|60 siderealhour # of a star over the meridian,
2436siderealsecond 1|60 siderealminute # or the time required for
2437 # Earth to make one rotation
2438 # relative to the stars. Another
2439 # way to think about it is to
2440 # imagine looking down at the
2441 # solar system and noting when
2442 # Earth has made a rotation.
2443 # The more usual solar day is the
2444 # time required to make a
2445 # rotation relative to the Sun,
2446 # which means the same point on
2447 # Earth faces the Sun again.
2448 # Because Earth moves in its
2449 # orbit, it has to rotate a bit
2450 # more to face the Sun again,
2451 # hence the solar day is slightly
2452 # longer than the sidereal day.
2453 # The value given here is the
2454 # mean day length taken from
2455 # ssd.jpl.nasa.gov/astro_par.html
2456 # which in turn cites the
2457 # "Explanatory Supplement to the
2458 # Astronomical Almanac", 1992.
2459anomalisticmonth 27.55454977 day # Time for the Moon to travel from
2460 # perigee to perigee
2461nodicalmonth 27.2122199 day # The nodes are the points where
2462draconicmonth nodicalmonth # an orbit crosses the ecliptic.
2463draconiticmonth nodicalmonth # This is the time required to
2464 # travel from the ascending node
2465 # to the next ascending node.
2466siderealmonth 27.321661 day # Time required for the Moon to
2467 # orbit the Earth
2468lunarmonth 29 days + 12 hours + 44 minutes + 2.8 seconds
2469 # Mean time between full moons.
2470synodicmonth lunarmonth # Full moons occur when the Sun
2471lunation synodicmonth # and Moon are on opposite sides
2472lune 1|30 lunation # of the Earth. Since the Earth
2473lunour 1|24 lune # moves around the Sun, the Moon
2474 # has to move a bit further in its
2475 # orbit to return to the full moon
2476 # configuration.
2477year tropicalyear
2478yr year
2479month 1|12 year
2480mo month
2481lustrum 5 years # The Lustrum was a Roman
2482 # purification ceremony that took
2483 # place every five years.
2484 # Classically educated Englishmen
2485 # used this term.
2486decade 10 years
2487century 100 years
2488millennium 1000 years
2489millennia millennium
2490solaryear year
2491lunaryear 12 lunarmonth
2492calendaryear 365 day
2493commonyear 365 day
2494leapyear 366 day
2495
2496# The Julian year is The length of an average year over a 4-year cycle in the
2497# Julian calendar. The calendar was proposed by Julius Caesar in 46 BCE and
2498# took effect the following year. It has a normal year of 365 days and a leap
2499# year of 366 days every four years. Though this calendar was used in
2500# Europe for more than 1600 years, it drifts from the topical year by
2501# about 1 day every 128 years, which became noticeable over its period
2502# of use.
2503
2504# This growing discrepancy between the seasons and the calendar was perhaps
2505# confusing but was also of concern to the Catholic Church because it led to a
2506# shift in the date of Easter. To correct this discrepancy, Pope Gregory XIII
2507# introduced the more accurate Gregorian calendar in 1582. The Gregorian year
2508# is the length of an average year over a 400-year cycle in the Gregorian
2509# calendar. Every year that is exactly divisible by four is a
2510# leap year, except for years that are exactly divisible by 100, unless these
2511# centurial years are exactly divisible by 400. This calendar was adopted by
2512# many Catholic countries when it was proclaimed, but was not adopted by many
2513# other countries until much later; Britain and the British Empire, including
2514# what is now the eastern part of the United States, adopted it in 1752. See
2515# https://en.wikipedia.org/wiki/List_of_adoption_dates_of_the_Gregorian_calendar_by_country
2516# for additional details.
2517
2518julianyear 365.25 days
2519gregorianyear 365.2425 days
2520
2521islamicyear 354 day # A year of 12 lunar months. They
2522islamicleapyear 355 day # began counting on July 16, AD 622
2523 # when Muhammad emigrated to Medina
2524 # (the year of the Hegira). They need
2525 # 11 leap days in 30 years to stay in
2526 # sync with the lunar year which is a
2527 # bit longer than the 29.5 days of the
2528 # average month. The months do not
2529 # keep to the same seasons, but
2530 # regress through the seasons every
2531 # 32.5 years.
2532islamicmonth 1|12 islamicyear # They have 29 day and 30 day months.
2533
2534# The Hebrew year is also based on lunar months, but synchronized to the solar
2535# calendar. The months vary irregularly between 29 and 30 days in length, and
2536# the years likewise vary. The regular year is 353, 354, or 355 days long. To
2537# keep up with the solar calendar, a leap month of 30 days is inserted every
2538# 3rd, 6th, 8th, 11th, 14th, 17th, and 19th years of a 19 year cycle. This
2539# gives leap years that last 383, 384, or 385 days.
2540
2541#
2542# Planetary data from JPL's planet fact sheets. Each planet has its
2543# own sheet at https://nssdc.gsfc.nasa.gov/planetary/factsheet/<name>fact.html
2544# The source for data on the fact sheets is described at
2545# https://nssdc.gsfc.nasa.gov/planetary/factsheet/fact_notes.html
2546# and they also indicate that the values listed are not "official" values:
2547# there is no single set of agreed upon values.
2548
2549# Sidereal days. The sidereal day is the time required for a planet to make a
2550# revolution relative to the stars. This is the default day value.
2551
2552mercuryday mercuryday_sidereal
2553venusday venusday_sidereal
2554earthday earthday_sidereal
2555marsday marsday_sidereal
2556jupiterday jupiterday_sidereal
2557saturnday saturnday_sidereal
2558uranusday uranusday_sidereal
2559neptuneday neptuneday_sidereal
2560plutoday plutoday_sidereal
2561
2562mercuryday_sidereal 1407.6 hr # Mercury is in a 3:2 resonance lock
2563 # where it makes 3 rotations per 2 orbits
2564 # so 3 sidereal days = 2 years
2565venusday_sidereal 5832.6 hr # Retrograde
2566earthday_sidereal siderealday
2567marsday_sidereal 24.6229 hr
2568jupiterday_sidereal 9.9250 hr
2569saturnday_sidereal 10.656 hr
2570uranusday_sidereal 17.24 hr # Retrograde
2571neptuneday_sidereal 16.11 hr
2572plutoday_sidereal 153.2928 hr # Retrograde
2573
2574# In astronomy, an object's rotation is "prograde" if it rotates in
2575# the same direction as the primary object it orbits. Prograde
2576# rotation is the more common case: in Earth's solar system, Mercury,
2577# Earth, Mars, Jupiter, Saturn, and Neptune have prograde rotation.
2578# When an object rotates opposite the direction of its primary object,
2579# the object's rotation is "retrograde". Venus, Uranus, and Pluto have
2580# retrograde rotation.
2581#
2582# The solar (or synodic) day is the time from noon to noon on a planet. This
2583# is different from the sidereal day because the planet has moved in its orbit,
2584# so (if its rotation is prograde) it needs additional rotation to return to
2585# the same orientation relative to the Sun. In one orbital period (a year),
2586# this amounts to one additional complete rotation, so the number of sidereal
2587# days in a year is one greater than the number of solar days.
2588#
2589# If the planet's rotation is retrograde, less rotation is needed to return to
2590# the same orientation relative to the Sun, and the number of sidereal days in
2591# a year is one fewer than the number of solar days.
2592#
2593# The solar day can be computed from the sidereal day in the typical prograde
2594# case by:
2595# solar_day = sidereal_day year / (year - sidereal_day)
2596# If the planet's rotation is retrograde like Venus then the formula is
2597# solar_day = sidereal_day year / (year + sidereal_day)
2598# If the sidereal day and year are the same length then the same face of the
2599# planet faces the Sun and there is no solar day.
2600
2601mercuryday_solar 4222.6 hr
2602venusday_solar 2802.0 hr
2603earthday_solar 24 hr
2604marsday_solar 24.6597 hr
2605jupiterday_solar 9.9259 hr
2606saturnday_solar 10.656 hr
2607uranusday_solar 17.24 hr
2608neptuneday_solar 16.11 hr
2609plutoday_solar 153.2820 hr
2610
2611# Sidereal years
2612
2613mercuryyear 87.969 day
2614venusyear 224.701 day
2615earthyear siderealyear
2616marsyear 686.980 day
2617jupiteryear 4332.589 day
2618saturnyear 10759.22 day
2619uranusyear 30685.4 day
2620neptuneyear 60189 day
2621plutoyear 90560 day
2622
2623# Equatorial radii for the planets from JPL fact sheets
2624
2625mercuryradius 2440.5 km
2626venusradius 6051.8 km
2627earthradius 6378.137 km
2628marsradius 3396.2 km
2629jupiterradius 71492 km # 1 bar level
2630saturnradius 60268 km # 1 bar level
2631uranusradius 25559 km # 1 bar level
2632neptuneradius 24764 km # 1 bar level
2633plutoradius 1188 km
2634
2635# Volumetric mean radii
2636
2637mercuryradius_mean 2440.5 km
2638venusradius_mean 6051.8 km
2639earthradius_mean 6371 km
2640marsradius_mean 3389.5 km
2641jupiterradius_mean 69911 km
2642saturnradius_mean 58232 km
2643uranusradius_mean 25362 km
2644neptuneradius_mean 24622 km
2645plutoradius_mean 1188 km
2646
2647# Polar radii
2648
2649mercuryradius_polar 2438.3 km
2650venusradius_polar 6051.8 km
2651marsradius_polar 3376.2 km
2652jupiterradius_polar 66854 km
2653saturnradius_polar 54364 km
2654uranusradius_polar 24973 km
2655neptuneradius_polar 24341 km
2656plutoradius_polar 1188 km
2657
2658mercurysundist_min 46.000 Gm
2659mercurysundist_max 69.818 Gm
2660venussundist_min 107.480 Gm
2661venussundist_max 108.941 Gm
2662earthsundist_min sundist_min
2663earthsundist_max sundist_max
2664marssundist_min 206.650 Gm
2665marssundist_max 249.261 Gm
2666jupitersundist_min 740.595 Gm
2667jupitersundist_max 816.363 Gm
2668saturnsundist_min 1357.554 Gm
2669saturnsundist_max 1506.527 Gm
2670uranussundist_min 2732.696 Gm
2671uranussundist_max 3001.390 Gm
2672neptunesundist_min 4471.050 Gm
2673neptunesundist_max 4558.857 Gm
2674plutosundist_min 4434.987 Gm
2675plutosundist_max 7304.326 Gm
2676
2677sundist 1.0000010178 au # mean Earth-Sun distance
2678moondist 384400 km # mean Earth-Moon distance
2679sundist_near 147.095 Gm # Earth-Sun distance at perihelion
2680sundist_min sundist_near
2681sundist_far 152.100 Gm # Earth-Sun distance at aphelion
2682sundist_max sundist_far
2683
2684# The Earth-Moon distances at perigee and apogee are different for every
2685# lunation. The values here are the extremes for 1500-2500 according to
2686# Jean Meeus's Astronomical Algorithms (1991, 332).
2687
2688moondist_min 356371 km # minimum distance at perigee 1500-2500
2689moondist_max 406720 km # maximum distance at apogee 1500-2500
2690
2691# Objects on Earth are charted relative to a perfect ellipsoid whose
2692# dimensions are specified by different organizations. The ellipsoid is
2693# specified by an equatorial radius and a flattening value which defines the
2694# polar radius.
2695
2696earthflattening IERS_earthflattening
2697earthradius_equatorial IERS_earthradius_equatorial
2698earthradius_polar (1-earthflattening) earthradius_equatorial
2699
2700# The World Geodetic System maintains a standard, WGS84, which is used by the
2701# the GPS system. This system uses a conventional ellipsoid that was fixed in
2702# 1984 and has remained constant so that data collected at different times is
2703# referenced to the same ellipsoid. https://epsg.io/4326
2704
2705WGS84_earthflattening 1|298.257223563
2706WGS84_earthradius_equatorial 6378137 m
2707WGS84_earthradius_polar (1-WGS84_earthflattening) WGS84_earthradius_equatorial
2708
2709# The International Earth Rotation Service (IERS) attempts to
2710# maintain an accurate model of Earth, with updates to maintain the highest
2711# possible accuracy, even though this makes it more difficult to relate geodetic
2712# measurements made at different times.
2713# IERS Conventions, Chapter 1, General definitions and numerical standards (16 November 2017)
2714# https://iers-conventions.obspm.fr/content/chapter1/icc1.pdf
2715
2716IERS_earthflattening 1|298.25642
2717IERS_earthradius_equatorial 6378136.6 m
2718IERS_earthradius_polar (1-IERS_earthflattening) IERS_earthradius_equatorial
2719
2720
2721landarea 148.847e6 km^2
2722oceanarea 361.254e6 km^2
2723
2724moonradius 1738 km # mean value
2725sunradius 6.96e8 m
2726
2727# Many astronomical values can be measured most accurately in a system of units
2728# using the astronomical unit and the mass of the Sun as base units. The
2729# uncertainty in the gravitational constant makes conversion to SI units
2730# significantly less accurate.
2731
2732# The astronomical unit was defined to be the length of the of the semimajor
2733# axis of a massless object with the same year as Earth. With such a
2734# definition in force, and with the mass of the Sun set equal to one, Kepler's
2735# third law can be used to solve for the value of the gravitational constant.
2736
2737# Kepler's third law says that (2 pi / T)^2 a^3 = G M where T is the orbital
2738# period, a is the size of the semimajor axis, G is the gravitational constant
2739# and M is the mass. With M = 1 and T and a chosen for Earth's orbit, we
2740# find sqrt(G) = (2 pi / T) sqrt(AU^3). This constant is called the Gaussian
2741# gravitational constant, apparently because Gauss originally did the
2742# calculations. However, when the original calculation was done, the value
2743# for the length of Earth's year was inaccurate. The value used is called
2744# the Gaussian year. Changing the astronomical unit to bring it into
2745# agreement with more accurate values for the year would have invalidated a
2746# lot of previous work, so instead the astronomical unit has been kept equal
2747# to this original value. This is accomplished by using a standard value for
2748# the Gaussian gravitational constant. This constant is called k.
2749
2750gauss_k 0.01720209895 # This beast has dimensions of
2751 # au^(3|2) / day and is exact.
2752gaussianyear (2 pi / gauss_k) days # Year that corresponds to the Gaussian
2753 # gravitational constant. This is a
2754 # fictional year, and doesn't
2755 # correspond to any celestial event.
2756astronomicalunit 149597870700 m # IAU definition from 2012, exact
2757au astronomicalunit # ephemeris for the above described
2758 # astronomical unit. (See the NASA
2759 # site listed above.)
2760GMsun 132712440041.279419 km^3 / s^2 # heliocentric gravitational constant
2761solarmass GMsun/G # is known more accurately than G.
2762sunmass solarmass # Estimated from DE440
2763
2764
2765# The following are masses for planetary systems, not just the planet itself,
2766# except for the case of Earth, where the Moon is excluded. Masses are
2767# relative to G because they are known much more accurately than G.
2768#
2769# See https://ssd.jpl.nasa.gov/astro_par.html. Values are from
2770# the DE440 Ephemeris: https://ssd.jpl.nasa.gov/doc/Park.2021.AJ.DE440.pdf
2771
2772mercurymass 22031.868551 km^3 / s^2 G
2773venusmass 324858.592000 km^3 / s^2 G
2774marsmass 42828.375816 km^3 / s^2 G
2775jupitermass 126712764.100000 km^3 / s^2 G
2776saturnmass 37940584.841800 km^3 / s^2 G
2777uranusmass 5794556.400000 km^3 / s^2 G
2778neptunemass 6836527.100580 km^3 / s^2 G
2779plutomass 975.500000 km^3 / s^2 G
2780ceresmass 62.62890 km^3 / s^2 G
2781vestamass 17.288245 km^3 / s^2 G
2782
2783earthmass 398600.435507 km^3 / s^2 G # Earth alone
2784moonmass 4902.800118 km^3 / s^2 G
2785moonearthmassratio moonmass/earthmass
2786earthmoonmass earthmass+moonmass
2787
2788moongravity 1.62 m/s^2
2789
2790# Earth gravity values at the equator and poles. These values are
2791# obtained from the WGS84 model.
2792
2793gravity_equatorial 9.7803263359 m / s^2
2794gravity_polar 9.8321849378 m / s^2
2795
2796# The Hubble constant gives the speed at which distance galaxies are moving
2797# away from Earth according to v = H0*d, where H0 is the hubble constant
2798# and d is the distance to the galaxy.
2799
2800hubble 70 km/s/Mpc # approximate
2801H0 hubble
2802
2803# Parallax is the angular difference between the topocentric (on Earth's
2804# surface) and geocentric (at Earth's center) direction toward a celestial body
2805# when the body is at a given altitude. When the body is on the horizon, the
2806# parallax is the horizontal parallax; when the body is on the horizon and the
2807# observer is on the equator, the parallax is the equatorial horizontal
2808# parallax. When the body is at zenith, the parallax is zero.
2809
2810lunarparallax asin(earthradius_equatorial / moondist) # Moon equatorial
2811moonhp lunarparallax # horizontal parallax
2812 # at mean distance
2813
2814# Light from celestial objects is attenuated by passage through Earth's
2815# atmosphere. A body near the horizon passes through much more air than an
2816# object at zenith, and is consequently less bright. Air mass is the ratio of
2817# the length of the optical path at a given altitude (angle above the horizon)
2818# to the length at zenith. Air mass at zenith is by definition unity; at the
2819# horizon, air mass is approximately 38, though the latter value can vary
2820# considerably with atmospheric conditions. The general formula is # E = E0
2821# exp(-c X), where E0 is the value outside Earth's atmosphere, E is the value
2822# seen by an observer, X is the air mass and c is the extinction coefficient.
2823# A common value for c in reasonably clear air is 0.21, but values can be
2824# considerably greater in urban areas. Apparent altitude is that perceived by
2825# an observer; it includes the effect of atmospheric refraction. There is no
2826# shortage of formulas for air mass
2827# (https://en.wikipedia.org/wiki/Air_mass_(astronomy)); all are subject to
2828# variations in local atmospheric conditions. The formula used here is simple
2829# and is in good agreement with rigorously calculated values under standard
2830# conditions.
2831#
2832# Extraterrestrial illuminance or luminance of an object at a given altitude
2833# determined with vmag() or SB_xxx() below can be multiplied by
2834# atm_transmission() or atm_transmissionz() to estimate the terrestrial value.
2835#
2836# Kasten and Young (1989) air mass formula. alt is apparent altitude
2837# Reference:
2838# Kasten, F., and A.T. Young. 1989. "Revised Optical Air Mass Tables
2839# and Approximation Formula." Applied Optics. Vol. 28, 4735-4738.
2840# Bibcode:1989ApOpt..28.4735K. doi:10.1364/AO.28.004735.
2841
2842airmass(alt) units=[degree;1] domain=[0,90] noerror \
2843 1 / (sin(alt) + 0.50572 (alt / degree + 6.07995)^-1.6364)
2844
2845# zenith is apparent zenith angle (zenith = 90 deg - alt)
2846airmassz(zenith) units=[degree;1] domain=[0,90] noerror \
2847 1 / (cos(zenith) + 0.50572 (96.07995 - zenith / degree)^-1.6364)
2848
2849# For reasonably clear air at sea level; values may need adjustment for
2850# elevation and local atmospheric conditions
2851# for scotopic vision (510 nm), appropriate for the dark-adapted eye
2852# extinction_coeff 0.26
2853# for photopic vision, appropriate for observing brighter objects such
2854# as the full moon
2855extinction_coeff 0.21
2856
2857atm_transmission(alt) units=[degree;1] domain=[0,90] noerror \
2858 exp(-extinction_coeff airmass(alt))
2859
2860# in terms of zenith angle (zenith = 90 deg - alt)
2861atm_transmissionz(zenith) units=[degree;1] domain=[0,90] noerror \
2862 exp(-extinction_coeff airmassz(zenith))
2863
2864# Moon and Sun data at mean distances
2865moonvmag -12.74 # Moon apparent visual magnitude at mean distance
2866sunvmag -26.74 # Sun apparent visual magnitude at mean distance
2867moonsd asin(moonradius / moondist) # Moon angular semidiameter at mean distance
2868sunsd asin(sunradius / sundist) # Sun angular semidiameter at mean distance
2869
2870# Visual magnitude of star or other celestial object. The system of stellar
2871# magnitudes, developed in ancient Greece, assigned magnitudes from 1
2872# (brightest) to 6 (faintest visible to the naked eye). In 1856, British
2873# astronomer Norman Pogson made the system precise, with a magnitude 1 object
2874# 100 times as bright as a magnitude 6 object, and each magnitude differing
2875# from the next by a constant ratio; the ratio, sometimes known as Pogson's
2876# ratio, is thus 100^0.2, or approximately 2.5119. The logarithm of 100^0.2 is
2877# 0.4, hence the common use of powers of 10 and base-10 logarithms.
2878#
2879# Reference:
2880# Allen, C.W. 1976. Astrophysical Quantities, 3rd ed. 1973, reprinted
2881# with corrections, 1976. London: Athlone.
2882#
2883# The function argument is the (dimensionless) visual magnitude; reference
2884# illuminance of 2.54e-6 lx is from Allen (2000, 21), and is for outside
2885# Earth's atmosphere. Illuminance values can be adjusted to terrestrial values
2886# by multiplying by one of the atm_transmission functions above.
2887
2888# Illuminance from apparent visual magnitude
2889vmag(mag) units=[1;lx] domain=[,] range=(0,] \
2890 2.54e-6 lx 10^(-0.4 mag); -2.5 log(vmag / (2.54e-6 lx))
2891
2892# Surface brightness of a celestial object of a given visual magnitude
2893# is a logarithmic measure of the luminance the object would have if its
2894# light were emitted by an object of specified solid angle; it is
2895# expressed in magnitudes per solid angle. Surface brightness can be
2896# obtained from the visual magnitude by
2897# S = m + 2.5 log(pi pi k a b),
2898# where k is the phase (fraction illuminated), a is the equatorial
2899# radius, and b is the polar radius. For 100% illumination (e.g., full
2900# moon), this is often simplified to
2901# S = m + 2.5 log(pi k s^2),
2902# where s is the object's angular semidiameter; the units of s determine
2903# the units of solid angle. The visual magnitude and semidiameter must
2904# be appropriate for the object's distance; for other than 100%
2905# illumination, the visual magnitude must be appropriate for the phase.
2906# Luminance values are for outside Earth's atmosphere; they can be
2907# adjusted to terrestrial values by multiplying by one of the atm_transmission
2908# functions above.
2909
2910# luminance from surface brightness in magnitudes per square degree
2911SB_degree(sb) units=[1;cd/m^2] domain=[,] range=(0,] \
2912 vmag(sb) / squaredegree ; \
2913 ~vmag(SB_degree squaredegree)
2914
2915# luminance from surface brightness in magnitudes per square minute
2916SB_minute(sb) units=[1;cd/m^2] domain=[,] range=(0,] \
2917 vmag(sb) / squareminute ; \
2918 ~vmag(SB_minute squareminute)
2919
2920# luminance from surface brightness in magnitudes per square second
2921SB_second(sb) units=[1;cd/m^2] domain=[,] range=(0,] \
2922 vmag(sb) / squaresecond ; \
2923 ~vmag(SB_second squaresecond)
2924
2925# luminance from surface brightness in magnitudes per steradian
2926SB_sr(sb) units=[1;cd/m^2] domain=[,] range=(0,] \
2927 vmag(sb) / sr ; \
2928 ~vmag(SB_sr sr)
2929
2930SB() SB_second
2931SB_sec() SB_second
2932SB_min() SB_minute
2933SB_deg() SB_degree
2934
2935# The brightness of one tenth-magnitude star per square degree outside
2936# Earth's atmosphere; often used for night sky brightness.
2937S10 SB_degree(10)
2938
2939# Examples for magnitude and surface brightness functions
2940# Sun illuminance from visual magnitude
2941# You have: sunvmag
2942# You want:
2943# Definition: -26.74 = -26.74
2944# You have: vmag(sunvmag)
2945# You want: lx
2946# * 126134.45
2947# / 7.9280482e-06
2948#
2949# Moon surface brightness from visual magnitude and semidiameter at 100%
2950# illumination (full moon):
2951# You have: moonvmag
2952# You want:
2953# Definition: -12.74 = -12.74
2954# You have: moonsd
2955# You want: arcsec
2956# * 932.59484
2957# / 0.001072277
2958# You have: moonvmag + 2.5 log(pi 932.59484^2)
2959# You want:
2960# Definition: 3.3513397
2961#
2962# Similar example with specific data obtained from another source (JPL
2963# Horizons, https://ssd.jpl.nasa.gov/horizons.cgi); semidiameter is in
2964# arcseconds
2965#
2966# You have: -12.9 + 2.5 log(pi 2023.201|2^2)
2967# You want:
2968# Definition: 3.3679199
2969# You have: SB_second(-12.9 + 2.5 log(pi 2023.201|2^2))
2970# You want:
2971# Definition: 4858.6547 cd / m^2
2972#
2973# If surface brightness is provided by another source (e.g., Horizons),
2974# it can simply be used directly:
2975# You have: SB_second(3.3679199)
2976# You want: cd/m^2
2977# * 4858.6546
2978# / 0.0002058183
2979# The illuminance and luminance values are extraterrestrial (outside
2980# Earth's atmosphere). The values at Earth's surface are less than these
2981# because of atmospheric extinction. For example, in the last example
2982# above, if the Moon were at an altitude of 55 degrees, the terrestrial
2983# luminance could be calculated with
2984# You have: SB_second(3.3679199)
2985# You want: cd/m^2
2986# * 4858.6546
2987# / 0.0002058183
2988# You have: _ atm_transmission(55 deg)
2989# You want: cd/m^2
2990# * 3760.6356
2991# / 0.0002659125
2992# If desired, photographic exposure can be determined with EV100(),
2993# leading to acceptable combinations of aperture and exposure time.
2994# For the example above, but with the Moon at 10 degrees,
2995# You have: SB_second(3.3679199) atm_transmission(10 deg)
2996# You want: EV100
2997# 13.553962
2998
2999#
3000# The Hartree system of atomic units, derived from fundamental units
3001# of mass (of the electron), action (Planck's constant), charge, and
3002# the Coulomb constant. This system is used in the fields of physical
3003# chemistry and condensed matter physics.
3004#
3005
3006# Fundamental units
3007
3008atomicmass electronmass
3009atomiccharge e
3010atomicaction hbar
3011atomicenergy hartree
3012
3013# Derived units
3014
3015atomicvelocity sqrt(atomicenergy / atomicmass)
3016atomictime atomicaction / atomicenergy
3017atomiclength atomicvelocity atomictime
3018atomicforce atomicenergy / atomiclength
3019atomicmomentum atomicenergy / atomicvelocity
3020atomiccurrent atomiccharge / atomictime
3021atomicpotential atomicenergy / atomiccharge # electrical potential
3022atomicvolt atomicpotential
3023atomicEfield atomicpotential / atomiclength
3024atomicBfield atomicEfield / atomicvelocity
3025atomictemperature atomicenergy / boltzmann
3026
3027#
3028# In Hartree units, m_e = hbar = e = coulombconst = bohrradius = alpha*c = 1
3029#
3030
3031!var UNITS_SYSTEM hartree
3032!message Hartree units selected
3033!prompt (hartree)
3034+hartree 1
3035+kg 1/electronmass_SI
3036+K k_SI / hbar_SI s
3037+m alpha c_SI electronmass_SI / hbar_SI
3038+s alpha c_SI m
3039+A 1 / s e_SI
3040!endvar
3041
3042#
3043# These thermal units treat entropy as charge, from [5]
3044#
3045
3046thermalcoulomb J/K # entropy
3047thermalampere W/K # entropy flow
3048thermalfarad J/K^2
3049thermalohm K^2/W # thermal resistance
3050fourier thermalohm
3051thermalhenry J K^2/W^2 # thermal inductance
3052thermalvolt K # thermal potential difference
3053
3054
3055#
3056# United States units
3057#
3058
3059# linear measure
3060
3061# The US Metric Law of 1866 legalized the metric system in the USA and
3062# defined the meter in terms of the British system with the exact
3063# 1 meter = 39.37 inches. On April 5, 1893 Thomas Corwin Mendenhall,
3064# Superintendent of Weights and Measures, decided, in what has become
3065# known as the "Mendenhall Order" that the meter and kilogram would be the
3066# fundamental standards in the USA. The definition from 1866 was turned
3067# around to give an exact definition of the yard as 3600|3937 meters This
3068# definition was used until July of 1959 when the definition was changed
3069# to bring the US and other English-speaking countries into agreement; the
3070# Canadian value of 1 yard = 0.9144 meter (exactly) was chosen because it
3071# was approximately halfway between the British and US values; it had the
3072# added advantage of making 1 inch = 25.4 mm (exactly). Since 1959, the
3073# "international" foot has been exactly 0.3048 meters. At the same time,
3074# it was decided that any data expressed in feet derived from geodetic
3075# surveys within the US would continue to use the old definition and call
3076# the old unit the "survey foot."
3077#
3078# Until 1 January 2023, the US continued to define the statute
3079# mile, furlong, chain, rod, link, and fathom in terms of the US survey
3080# foot. Since then, use of the US survey foot has been officially
3081# deprecated, with its use limited to historical and legacy applications.
3082# These units are now defined in terms of the international foot.
3083#
3084# Sources:
3085# NIST Special Publication 447, Sects. 5, 7, and 8.
3086# NIST Handbook 44, 2024 ed., Appendix C.
3087# Canadian Journal of Physics, 1959, 37:(1) 84, 10.1139/p59-014.
3088
3089inch 2.54 cm # Exact, international inch (1959)
3090in inch
3091foot 12 inch
3092feet foot
3093ft foot
3094yard 3 ft
3095yd yard
3096mile 5280 ft # The mile was enlarged from 5000 ft
3097 # to this number in order to make
3098 # it an even number of furlongs.
3099 # (The Roman mile is 5000 romanfeet.)
3100line 1|12 inch # Also defined as '.1 in' or as '1e-8 Wb'
3101rod 16.5 ft
3102pole rod
3103perch rod
3104furlong 40 rod # From "furrow long"
3105statutemile mile
3106league 3 mile # Intended to be an hour's walk
3107
3108# surveyor's measure
3109# The US survey foot is officially deprecated as of 1 January 2023
3110US 1200|3937 m/ft # These four values will convert
3111US- US # international measures to
3112survey- US # US Survey measures
3113geodetic- US
3114int 3937|1200 ft/m # Convert US Survey measures to
3115int- int # international measures
3116
3117# values based on the US survey foot are deprecated as of 1 January 2023
3118surveyorschain 66 surveyft
3119surveychain surveyorschain
3120surveyorspole 1|4 surveyorschain
3121surveyorslink 1|100 surveyorschain
3122USacre 10 surveychain^2
3123USacrefoot USacre surveyfoot
3124
3125chain 66 ft
3126link 1|100 chain
3127ch chain
3128intacre 10 chain^2 # Acre based on international ft
3129intacrefoot acre foot
3130acrefoot intacrefoot
3131acre intacre
3132ac acre
3133section mile^2
3134township 36 section
3135homestead 160 acre # Area of land granted by the 1862 Homestead
3136 # Act of the United States Congress
3137gunterschain surveyorschain
3138
3139engineerschain 100 ft
3140engineerslink 1|100 engineerschain
3141ramsdenschain engineerschain
3142ramsdenslink engineerslink
3143
3144gurleychain 33 feet # Andrew Ellicott chain is the
3145gurleylink 1|50 gurleychain # same length
3146
3147wingchain 66 feet # Chain from 1664, introduced by
3148winglink 1|80 wingchain # Vincent Wing, also found in a
3149 # 33 foot length with 40 links.
3150# early US length standards
3151
3152# The US has had four standards for the yard: one by Troughton of London
3153# (1815); bronze yard #11 (1856); the Mendhall yard (1893), consistent
3154# with the definition of the meter in the metric joint resolution of
3155# Congress in 1866, but defining the yard in terms of the meter; and the
3156# international yard (1959), which standardized definitions for Australia,
3157# Canada, New Zealand, South Africa, the UK, and the US.
3158# Sources: Pat Naughtin (2009), Which Inch?:
3159# https://metricationmatters.org/docs/WhichInch.pdf,
3160# Lewis E. Barbrow and Lewis V. Judson (1976). NBS Special
3161# Publication 447, Weights and Measures Standards of the United States: A
3162# Brief History.
3163
3164troughtonyard 914.42190 mm
3165bronzeyard11 914.39980 mm
3166mendenhallyard surveyyard
3167internationalyard yard
3168
3169# nautical measure
3170
3171fathom 6 ft # Originally defined as the distance from
3172 # fingertip to fingertip with arms fully
3173 # extended.
3174nauticalmile 1852 m # Supposed to be one minute of latitude at
3175 # the equator. That value is about 1855 m.
3176 # Early estimates of Earth's circumference
3177 # were a bit off. The value of 1852 m was
3178 # made the international standard in 1929.
3179 # The US did not accept this value until
3180 # 1954. The UK switched in 1970.
3181
3182# The cable is used for depth in water and has a wide range of definitions
3183
3184intcable 1|10 nauticalmile # international cable
3185uscable 120 fathom # value after 1 January 2023
3186surveycable 120 USfathom # value before 1 January 2023
3187UScable surveycable
3188cableslength cable
3189cablelength cable
3190navycablelength cable
3191brcable 1|10 brnauticalmile
3192admiraltycable brcable
3193
3194marineleague 3 nauticalmile
3195geographicalmile brnauticalmile
3196knot nauticalmile / hr
3197click km # US military slang
3198klick click
3199
3200# Avoirdupois weight
3201
3202pound 0.45359237 kg # Exact, International Pound (1959)
3203lb pound # From the Latin libra
3204grain 1|7000 pound # The grain is the same in all three
3205 # weight systems. It was originally
3206 # defined as the weight of a barley
3207 # corn taken from the middle of the
3208 # ear.
3209ounce 1|16 pound
3210oz ounce
3211dram 1|16 ounce
3212dr dram
3213ushundredweight 100 pounds
3214cwt hundredweight
3215shorthundredweight ushundredweight
3216uston shortton
3217shortton 2000 lb
3218quarterweight 1|4 uston
3219shortquarterweight 1|4 shortton
3220shortquarter shortquarterweight
3221
3222# Troy Weight. In 1828 the troy pound was made the first United States
3223# standard weight. It was to be used to regulate coinage.
3224
3225troypound 5760 grain
3226troyounce 1|12 troypound
3227ozt troyounce
3228pennyweight 1|20 troyounce # Abbreviated "d" in reference to a
3229dwt pennyweight # Frankish coin called the "denier"
3230 # minted in the late 700's. There
3231 # were 240 deniers to the pound.
3232assayton mg ton / troyounce # mg / assayton = troyounce / ton
3233usassayton mg uston / troyounce
3234brassayton mg brton / troyounce
3235fineounce troyounce # A troy ounce of 99.5% pure gold
3236
3237# Some other jewelers units
3238
3239metriccarat 0.2 gram # Defined in 1907
3240metricgrain 50 mg
3241carat metriccarat
3242ct carat
3243jewelerspoint 1|100 carat
3244silversmithpoint 1|4000 inch
3245momme 3.75 grams # Traditional Japanese unit based
3246 # on the chinese mace. It is used for
3247 # pearls in modern times and also for
3248 # silk density. The definition here
3249 # was adopted in 1891.
3250# Apothecaries' weight
3251
3252appound troypound
3253apounce troyounce
3254apdram 1|8 apounce
3255apscruple 1|3 apdram
3256
3257# Liquid measure
3258
3259usgallon 231 in^3 # US liquid measure is derived from
3260gal gallon # the British wine gallon of 1707.
3261quart 1|4 gallon # See the "winegallon" entry below
3262pint 1|2 quart # more historical information.
3263gill 1|4 pint
3264usquart 1|4 usgallon
3265uspint 1|2 usquart
3266usgill 1|4 uspint
3267usfluidounce 1|16 uspint
3268fluiddram 1|8 usfloz
3269minimvolume 1|60 fluiddram
3270qt quart
3271pt pint
3272floz fluidounce
3273usfloz usfluidounce
3274fldr fluiddram
3275liquidbarrel 31.5 usgallon
3276usbeerbarrel 2 beerkegs
3277beerkeg 15.5 usgallon # Various among brewers
3278ponykeg 1|2 beerkeg
3279winekeg 12 usgallon
3280petroleumbarrel 42 usgallon # Originated in Pennsylvania oil
3281barrel petroleumbarrel # fields, from the winetierce
3282bbl barrel
3283ushogshead 2 liquidbarrel
3284usfirkin 9 usgallon
3285
3286# Dry measures: The Winchester Bushel was defined by William III in 1702 and
3287# legally adopted in the US in 1836.
3288
3289usbushel 2150.42 in^3 # Volume of 8 inch cylinder with 18.5
3290bu bushel # inch diameter (rounded)
3291peck 1|4 bushel
3292uspeck 1|4 usbushel
3293brpeck 1|4 brbushel
3294pk peck
3295drygallon 1|2 uspeck
3296dryquart 1|4 drygallon
3297drypint 1|2 dryquart
3298drybarrel 7056 in^3 # Used in US for fruits, vegetables,
3299 # and other dry commodities except for
3300 # cranberries.
3301cranberrybarrel 5826 in^3 # US cranberry barrel
3302heapedbushel 1.278 usbushel# The following explanation for this
3303 # value was provided by Wendy Krieger
3304 # <os2fan2@yahoo.com> based on
3305 # guesswork. The cylindrical vessel is
3306 # 18.5 inches in diameter and 1|2 inch
3307 # thick. A heaped bushel includes the
3308 # contents of this cylinder plus a heap
3309 # on top. The heap is a cone 19.5
3310 # inches in diameter and 6 inches
3311 # high. With these values, the volume
3312 # of the bushel is 684.5 pi in^3 and
3313 # the heap occupies 190.125 pi in^3.
3314 # Therefore, the heaped bushel is
3315 # 874.625|684.5 bushels. This value is
3316 # approximately 1.2777575 and it rounds
3317 # to the value listed for the size of
3318 # the heaped bushel. Sometimes the
3319 # heaped bushel is reported as 1.25
3320 # bushels. This same explanation gives
3321 # that value if the heap is taken to
3322 # have an 18.5 inch diameter.
3323
3324# Grain measures. The bushel as it is used by farmers in the USA is actually
3325# a measure of mass which varies for different commodities. Canada uses the
3326# same bushel masses for most commodities, but not for oats.
3327
3328wheatbushel 60 lb
3329soybeanbushel 60 lb
3330cornbushel 56 lb
3331ryebushel 56 lb
3332barleybushel 48 lb
3333oatbushel 32 lb
3334ricebushel 45 lb
3335canada_oatbushel 34 lb
3336
3337# Wine and Spirits measure
3338
3339ponyvolume 1 usfloz
3340jigger 1.5 usfloz # Can vary between 1 and 2 usfloz
3341shot jigger # Sometimes 1 usfloz
3342eushot 25 ml # EU standard spirits measure
3343fifth 1|5 usgallon
3344winebottle 750 ml # US industry standard, 1979
3345winesplit 1|4 winebottle
3346magnum 1.5 liter # Standardized in 1979, but given
3347 # as 2 qt in some references
3348metrictenth 375 ml
3349metricfifth 750 ml
3350metricquart 1 liter
3351
3352# Old British bottle size
3353
3354reputedquart 1|6 brgallon
3355reputedpint 1|2 reputedquart
3356brwinebottle reputedquart # Very close to 1|5 winegallon
3357
3358# French champagne bottle sizes
3359
3360split 200 ml
3361jeroboam 2 magnum
3362rehoboam 3 magnum
3363methuselah 4 magnum
3364imperialbottle 4 magnum
3365salmanazar 6 magnum
3366balthazar 8 magnum
3367nebuchadnezzar 10 magnum
3368solomon 12 magnum
3369melchior 12 magnum
3370sovereign 17.5 magnum
3371primat 18 magnum
3372goliath 18 magnum
3373melchizedek 20 magnum
3374midas 20 magnum
3375
3376# The wine glass doesn't seem to have an official standard, but the same value
3377# is suggested by several sources in the US.
3378
3379wineglass 150 mL
3380
3381# In the UK, serving size offerings legally mandated by The Weights and
3382# Measures (Specified Quantities) (Unwrapped Bread and Intoxicating
3383# Liquor) Order 2011, effective 1st October 2011. The quantities--not
3384# the names--are mandated. Lawful size offerings are these or multiples
3385# thereof, but other sizes can be provided at the express request of a
3386# buyer.
3387
3388smallwineglass 125 mL
3389mediumwineglass 175 mL
3390
3391# Values vary considerably among countries and even more so in practice. The
3392# "standard" US value gives 5 glasses per standard 750 ml bottle. Old practice
3393# in the UK was 125 ml per glass, or 6 glasses per bottle. Some sources suggest
3394# a more recent common value of 250 ml per glass, or 3 glasses per
3395# bottle; as a multiple of 125 ml, this would be a lawful serving size offering.
3396#
3397# The value refers to the size of the serving, not the total volume of the
3398# glass, which is typically not filled above the height of its greatest
3399# diameter.
3400#
3401# A unit of alcohol is a specified amount of pure ethyl alcohol, expressed as a
3402# mass or volumetric equivalent. Many countries use the same concept but use
3403# different terms. "Alcohol unit" is used officially in the UK; the US, Canada,
3404# and Australia use "standard drink." Values vary considerably among
3405# countries. The UK value of 8 g is nominally the amount of alcohol that a
3406# typical adult can metabolize in one hour.
3407
3408alcoholunitus 14 g / ethanoldensity
3409alcoholunitca 13.6 g / ethanoldensity
3410alcoholunituk 8 g / ethanoldensity
3411alcoholunitau 10 g / ethanoldensity
3412
3413# Common serving sizes have roughly equivalent amounts of alcohol, as
3414# illustrated by US examples for wine (12% Alcohol By Volume), beer (5% ABV),
3415# and spirits (80 proof).
3416#
3417# alcoholunitus / 12% = 147.8 mL, close to the "standard" serving of 150 mL.
3418# alcoholunitus / 5% = 11.995346 floz, close to a standard 12 floz bottle or can
3419# alcoholunitus / 80 proof = 1.4994182 floz, close to a standard "shot" or jigger
3420
3421# https://www.rethinkingdrinking.niaaa.nih.gov/
3422# https://www.cdc.gov/alcohol/faqs.htm
3423# https://www.canada.ca/en/health-canada/services/substance-use/alcohol/low-risk-alcohol-drinking-guidelines
3424# https://www.drinkaware.co.uk/
3425# https://www.drinkaware.co.uk/facts/alcoholic-drinks-and-units
3426# https://www.gov.uk/government/uploads/system/uploads/attachment_data/file/545937/UK_CMOs__report.pdf
3427# https://adf.org.au/reducing-risk/alcohol/alcohol-guidelines/
3428# https://www.health.gov.au/topics/alcohol/about-alcohol/standard-drinks-guide
3429# https://en.wikipedia.org/wiki/Unit_of_alcohol
3430# https://en.wikipedia.org/wiki/Standard_drink
3431
3432# Coffee
3433#
3434# The recommended ratio of coffee to water. Values vary considerably;
3435# one is from the Specialty Coffee Association of America: Brewing Best Practices
3436# https://sca.coffee/research/protocols-best-practices
3437
3438coffeeratio 55 g/L # +/- 10%
3439
3440# other recommendations are more loose, e.g.,
3441# http://www.ncausa.org/About-Coffee/How-to-Brew-Coffee
3442
3443
3444#
3445# Water is "hard" if it contains various minerals, especially calcium
3446# carbonate.
3447#
3448
3449clarkdegree grains/brgallon # Content by weigh of calcium carbonate
3450gpg grains/usgallon # Divide by water's density to convert to
3451 # a dimensionless concentration measure
3452#
3453# Shoe measures
3454#
3455
3456shoeiron 1|48 inch # Used to measure leather in soles
3457shoeounce 1|64 inch # Used to measure non-sole shoe leather
3458
3459# USA shoe sizes. These express the length of the shoe or the length
3460# of the "last", the form that the shoe is made on. But note that
3461# this only captures the length. It appears that widths change 1/4
3462# inch for each letter within the same size, and if you change the
3463# length by half a size then the width changes between 1/8 inch and
3464# 1/4 inch. But this may not be standard. If you know better, please
3465# contact me.
3466
3467shoesize_delta 1|3 inch # USA shoe sizes differ by this amount
3468shoe_men0 8.25 inch
3469shoe_women0 (7+11|12) inch
3470shoe_boys0 (3+11|12) inch
3471shoe_girls0 (3+7|12) inch
3472
3473shoesize_men(n) units=[1;inch] shoe_men0 + n shoesize_delta ; \
3474 (shoesize_men+(-shoe_men0))/shoesize_delta
3475shoesize_women(n) units=[1;inch] shoe_women0 + n shoesize_delta ; \
3476 (shoesize_women+(-shoe_women0))/shoesize_delta
3477shoesize_boys(n) units=[1;inch] shoe_boys0 + n shoesize_delta ; \
3478 (shoesize_boys+(-shoe_boys0))/shoesize_delta
3479shoesize_girls(n) units=[1;inch] shoe_girls0 + n shoesize_delta ; \
3480 (shoesize_girls+(-shoe_girls0))/shoesize_delta
3481
3482# European shoe size. According to
3483# http://www.shoeline.com/footnotes/shoeterm.shtml
3484# shoe sizes in Europe are measured with Paris points which simply measure
3485# the length of the shoe.
3486
3487europeshoesize 2|3 cm
3488
3489#
3490# USA slang units
3491#
3492
3493buck US$
3494fin 5 US$
3495sawbuck 10 US$
3496usgrand 1000 US$
3497greenback US$
3498key kg # usually of marijuana, 60's
3499lid 1 oz # Another 60's weed unit
3500footballfield usfootballfield
3501usfootballfield 100 yards
3502canadafootballfield 110 yards # And 65 yards wide
3503marathon 26 miles + 385 yards
3504
3505#
3506# British
3507#
3508
3509# The length measure in the UK was defined by a bronze bar manufactured in
3510# 1844. Various conversions were sanctioned for convenience at different
3511# times, which makes conversions before 1963 a confusing matter. Apparently
3512# previous conversions were never explicitly revoked. Four different
3513# conversion factors appear below. Multiply them times an imperial length
3514# units as desired. The Weights and Measures Act of 1963 switched the UK away
3515# from their bronze standard and onto a definition of the yard in terms of the
3516# meter. This happened after an international agreement in 1959 to align the
3517# world's measurement systems.
3518
3519UK UKlength_SJJ
3520UK- UK
3521british- UK
3522
3523UKlength_B 0.9143992 meter / yard # Benoit found the yard to be
3524 # 0.9143992 m at a weights and
3525 # measures conference around
3526 # 1896. Legally sanctioned
3527 # in 1898.
3528UKlength_SJJ 0.91439841 meter / yard # In 1922, Seers, Jolly and
3529 # Johnson found the yard to be
3530 # 0.91439841 meters.
3531 # Used starting in the 1930's.
3532UKlength_K meter / 39.37079 inch # In 1816 Kater found this ratio
3533 # for the meter and inch. This
3534 # value was used as the legal
3535 # conversion ratio when the
3536 # metric system was legalized
3537 # for contract in 1864.
3538UKlength_C meter / 1.09362311 yard # In 1866 Clarke found the meter
3539 # to be 1.09362311 yards. This
3540 # conversion was legalized
3541 # around 1878.
3542brnauticalmile 6080 ft # Used until 1970 when the UK
3543brknot brnauticalmile / hr # switched to the international
3544admiraltymile brnauticalmile # nautical mile.
3545admiraltyknot brknot
3546seamile 6000 ft
3547shackle 15 fathoms # Adopted 1949 by British navy
3548
3549# British Imperial weight is mostly the same as US weight. A few extra
3550# units are added here.
3551
3552clove 7 lb
3553stone 14 lb
3554tod 28 lb
3555brquarterweight 1|4 brhundredweight
3556brhundredweight 8 stone
3557longhundredweight brhundredweight
3558longton 20 brhundredweight
3559brton longton
3560
3561# British Imperial volume measures
3562
3563brminim 1|60 brdram
3564brscruple 1|3 brdram
3565fluidscruple brscruple
3566brdram 1|8 brfloz
3567brfluidounce 1|20 brpint
3568brfloz brfluidounce
3569brgill 1|4 brpint
3570brpint 1|2 brquart
3571brquart 1|4 brgallon
3572brgallon 4.54609 l # The British Imperial gallon was
3573 # defined in 1824 to be the volume of
3574 # water which weighed 10 pounds at 62
3575 # deg F with a pressure of 30 inHg.
3576 # It was also defined as 277.274 in^3,
3577 # Which is slightly in error. In
3578 # 1963 it was defined to be the volume
3579 # occupied by 10 pounds of distilled
3580 # water of density 0.998859 g/ml weighed
3581 # in air of density 0.001217 g/ml
3582 # against weights of density 8.136 g/ml.
3583 # This gives a value of approximately
3584 # 4.5459645 liters, but the old liter
3585 # was in force at this time. In 1976
3586 # the definition was changed to exactly
3587 # 4.54609 liters using the new
3588 # definition of the liter (1 dm^3).
3589brbarrel 36 brgallon # Used for beer
3590brbushel 8 brgallon
3591brheapedbushel 1.278 brbushel
3592brquarter 8 brbushel
3593brchaldron 36 brbushel
3594
3595# Obscure British volume measures. These units are generally traditional
3596# measures whose definitions have fluctuated over the years. Often they
3597# depended on the quantity being measured. They are given here in terms of
3598# British Imperial measures. For example, the puncheon may have historically
3599# been defined relative to the wine gallon or beer gallon or ale gallon
3600# rather than the British Imperial gallon.
3601
3602bag 4 brbushel
3603bucket 4 brgallon
3604kilderkin 2 brfirkin
3605last 40 brbushel
3606noggin brgill
3607pottle 0.5 brgallon
3608pin 4.5 brgallon
3609puncheon 72 brgallon
3610seam 8 brbushel
3611coomb 4 brbushel
3612boll 6 brbushel
3613firlot 1|4 boll
3614brfirkin 9 brgallon # Used for ale and beer
3615cran 37.5 brgallon # measures herring, about 750 fish
3616brwinehogshead 52.5 brgallon # This value is approximately equal
3617brhogshead brwinehogshead # to the old wine hogshead of 63
3618 # wine gallons. This adjustment
3619 # is listed in the OED and in
3620 # "The Weights and Measures of
3621 # England" by R. D. Connor
3622brbeerhogshead 54 brgallon
3623brbeerbutt 2 brbeerhogshead
3624registerton 100 ft^3 # Used for internal capacity of ships
3625shippington 40 ft^3 # Used for ship's cargo freight or timber
3626brshippington 42 ft^3 #
3627freightton shippington # Both register ton and shipping ton derive
3628 # from the "tun cask" of wine.
3629displacementton 35 ft^3 # Approximate volume of a longton weight of
3630 # sea water. Measures water displaced by
3631 # ships.
3632waterton 224 brgallon
3633strike 70.5 l # 16th century unit, sometimes
3634 # defined as .5, 2, or 4 bushels
3635 # depending on the location. It
3636 # probably doesn't make a lot of
3637 # sense to define in terms of imperial
3638 # bushels. Zupko gives a value of
3639 # 2 Winchester grain bushels or about
3640 # 70.5 liters.
3641amber 4 brbushel# Used for dry and liquid capacity [18]
3642
3643# British volume measures with "imperial"
3644
3645imperialminim brminim
3646imperialscruple brscruple
3647imperialdram brdram
3648imperialfluidounce brfluidounce
3649imperialfloz brfloz
3650imperialgill brgill
3651imperialpint brpint
3652imperialquart brquart
3653imperialgallon brgallon
3654imperialbarrel brbarrel
3655imperialbushel brbushel
3656imperialheapedbushel brheapedbushel
3657imperialquarter brquarter
3658imperialchaldron brchaldron
3659imperialwinehogshead brwinehogshead
3660imperialhogshead brhogshead
3661imperialbeerhogshead brbeerhogshead
3662imperialbeerbutt brbeerbutt
3663imperialfirkin brfirkin
3664
3665# obscure British lengths
3666
3667barleycorn 1|3 UKinch # Given in Realm of Measure as the
3668 # difference between successive shoe sizes
3669nail 1|16 UKyard # Originally the width of the thumbnail,
3670 # or 1|16 ft. This took on the general
3671 # meaning of 1|16 and settled on the
3672 # nail of a yard or 1|16 yards as its
3673 # final value. [12]
3674UKpole 16.5 UKft # This was 15 Saxon feet, the Saxon
3675rope 20 UKft # foot (aka northern foot) being longer
3676englishell 45 UKinch
3677flemishell 27 UKinch
3678ell englishell # supposed to be measure from elbow to
3679 # fingertips
3680span 9 UKinch # supposed to be distance from thumb
3681 # to pinky with full hand extension
3682goad 4.5 UKft # used for cloth, possibly named after the
3683 # stick used for prodding animals.
3684
3685# misc obscure British units
3686
3687hide 120 acre # English unit of land area dating to the 7th
3688 # century, originally the amount of land
3689 # that a single plowman could cultivate,
3690 # which varied from 60-180 acres regionally.
3691 # Standardized at Normon conquest.
3692virgate 1|4 hide
3693nook 1|2 virgate
3694rood furlong rod # Area of a strip a rod by a furlong
3695englishcarat troyounce/151.5 # Originally intended to be 4 grain
3696 # but this value ended up being
3697 # used in the London diamond market
3698mancus 2 oz
3699mast 2.5 lb
3700nailkeg 100 lbs
3701basebox 31360 in^2 # Used in metal plating
3702
3703# alternate spellings
3704
3705gramme gram
3706litre liter
3707dioptre diopter
3708sulphur sulfur
3709
3710#
3711# Units derived the human body (may not be very accurate)
3712#
3713
3714geometricpace 5 ft # distance between points where the same
3715 # foot hits the ground
3716pace 2.5 ft # distance between points where alternate
3717 # feet touch the ground
3718USmilitarypace 30 in # United States official military pace
3719USdoubletimepace 36 in # United States official doubletime pace
3720fingerbreadth 7|8 in # The finger is defined as either the width
3721fingerlength 4.5 in # or length of the finger
3722finger fingerbreadth
3723palmwidth hand # The palm is a unit defined as either the width
3724palmlength 8 in # or the length of the hand
3725hand 4 inch # width of hand
3726shaftment 6 inch # Distance from tip of outstretched thumb to the
3727 # opposite side of the palm of the hand. The
3728 # ending -ment is from the old English word
3729 # for hand. [18]
3730smoot 5 ft + 7 in # Created as part of an MIT fraternity prank.
3731 # In 1958 Oliver Smoot was used to measure
3732 # the length of the Harvard Bridge, which was
3733 # marked off in Smoot lengths. These
3734 # markings have been maintained on the bridge
3735 # since then and repainted by subsequent
3736 # incoming fraternity members. During a
3737 # bridge renovation the new sidewalk was
3738 # scored every Smoot rather than at the
3739 # customary 6 ft spacing.
3740tomcruise 5 ft + 7.75 in # Height of Tom Cruise
3741
3742#
3743# Cooking measures
3744#
3745
3746# Common abbreviations
3747
3748tbl tablespoon
3749tbsp tablespoon
3750tblsp tablespoon
3751Tb tablespoon
3752tsp teaspoon
3753saltspoon 1|4 tsp
3754
3755# US measures
3756
3757uscup 8 usfloz
3758ustablespoon 1|16 uscup
3759usteaspoon 1|3 ustablespoon
3760ustbl ustablespoon
3761ustbsp ustablespoon
3762ustblsp ustablespoon
3763ustsp usteaspoon
3764metriccup 250 ml
3765stickbutter 1|4 lb # Butter in the USA is sold in one
3766 # pound packages that contain four
3767 # individually wrapped pieces. The
3768 # pieces are marked into tablespoons,
3769 # making it possible to measure out
3770 # butter by volume by slicing the
3771 # butter.
3772
3773legalcup 240 ml # The cup used on nutrition labeling
3774legaltablespoon 1|16 legalcup
3775legaltbsp legaltablespoon
3776
3777# Scoop size. Ice cream scoops in the US are marked with numbers
3778# indicating the number of scoops required to fill a US quart.
3779
3780scoop(n) units=[1;cup] domain=[4,100] range=[0.04,1] \
3781 32 usfloz / n ; 32 usfloz / scoop
3782
3783
3784# US can sizes.
3785
3786number1can 10 usfloz
3787number2can 19 usfloz
3788number2.5can 3.5 uscups
3789number3can 4 uscups
3790number5can 7 uscups
3791number10can 105 usfloz
3792
3793# British measures
3794
3795brcup 1|2 brpint
3796brteacup 1|3 brpint
3797brtablespoon 15 ml # Also 5|8 brfloz, approx 17.7 ml
3798brteaspoon 1|3 brtablespoon # Also 1|4 brtablespoon
3799brdessertspoon 2 brteaspoon
3800dessertspoon brdessertspoon
3801dsp dessertspoon
3802brtsp brteaspoon
3803brtbl brtablespoon
3804brtbsp brtablespoon
3805brtblsp brtablespoon
3806
3807# Australian
3808
3809australiatablespoon 20 ml
3810austbl australiatablespoon
3811austbsp australiatablespoon
3812austblsp australiatablespoon
3813australiateaspoon 1|4 australiatablespoon
3814austsp australiateaspoon
3815
3816# Italian
3817
3818etto 100 g # Used for buying items like meat and
3819etti etto # cheese.
3820
3821# Chinese
3822
3823catty 0.5 kg
3824oldcatty 4|3 lbs # Before metric conversion.
3825tael 1|16 oldcatty # Should the tael be defined both ways?
3826mace 0.1 tael
3827oldpicul 100 oldcatty
3828picul 100 catty # Chinese usage
3829
3830# Indian
3831
3832seer 14400 grain # British Colonial standard
3833ser seer
3834maund 40 seer
3835pakistanseer 1 kg
3836pakistanmaund 40 pakistanseer
3837chittak 1|16 seer
3838tola 1|5 chittak
3839ollock 1|4 liter # Is this right?
3840
3841# Japanese
3842
3843japancup 200 ml
3844
3845# densities of cooking ingredients from The Cake Bible by Rose Levy Beranbaum
3846# so you can convert '2 cups sugar' to grams, for example, or in the other
3847# direction grams could be converted to 'cup flour_scooped'.
3848
3849butter 8 oz/uscup
3850butter_clarified 6.8 oz/uscup
3851cocoa_butter 9 oz/uscup
3852shortening 6.75 oz/uscup # vegetable shortening
3853oil 7.5 oz/uscup
3854cakeflour_sifted 3.5 oz/uscup # The density of flour depends on the
3855cakeflour_spooned 4 oz/uscup # measuring method. "Scooped", or
3856cakeflour_scooped 4.5 oz/uscup # "dip and sweep" refers to dipping a
3857flour_sifted 4 oz/uscup # measure into a bin, and then sweeping
3858flour_spooned 4.25 oz/uscup # the excess off the top. "Spooned"
3859flour_scooped 5 oz/uscup # means to lightly spoon into a measure
3860breadflour_sifted 4.25 oz/uscup # and then sweep the top. Sifted means
3861breadflour_spooned 4.5 oz/uscup # sifting the flour directly into a
3862breadflour_scooped 5.5 oz/uscup # measure and then sweeping the top.
3863cornstarch 120 grams/uscup
3864dutchcocoa_sifted 75 g/uscup # These are for Dutch processed cocoa
3865dutchcocoa_spooned 92 g/uscup
3866dutchcocoa_scooped 95 g/uscup
3867cocoa_sifted 75 g/uscup # These are for nonalkalized cocoa
3868cocoa_spooned 82 g/uscup
3869cocoa_scooped 95 g/uscup
3870heavycream 232 g/uscup
3871milk 242 g/uscup
3872sourcream 242 g/uscup
3873molasses 11.25 oz/uscup
3874cornsyrup 11.5 oz/uscup
3875honey 11.75 oz/uscup
3876sugar 200 g/uscup
3877powdered_sugar 4 oz/uscup
3878brownsugar_light 217 g/uscup # packed
3879brownsugar_dark 239 g/uscup
3880
3881baking_powder 4.6 grams / ustsp
3882salt 6 g / ustsp
3883koshersalt 2.8 g / ustsp # Diamond Crystal kosher salt
3884koshersalt_morton 4.8 g / ustsp # Morton kosher salt
3885 # Values are from the nutrition info
3886 # on the packages
3887
3888
3889# Egg weights and volumes for a USA large egg
3890
3891egg 50 grams # without shell
3892eggwhite 30 grams
3893eggyolk 18.6 grams
3894eggvolume 3 ustablespoons + 1|2 ustsp
3895eggwhitevolume 2 ustablespoons
3896eggyolkvolume 3.5 ustsp
3897
3898# Alcohol density
3899
3900ethanoldensity 0.7893 g/cm^3 # From CRC Handbook, 91st Edition
3901alcoholdensity ethanoldensity
3902
3903#
3904# Density measures. Density has traditionally been measured on a variety of
3905# bizarre nonlinear scales.
3906#
3907
3908# Density of a sugar syrup is frequently measured in candy making procedures.
3909# In the USA the boiling point of the syrup is measured. Some recipes instead
3910# specify the density using degrees Baume. Conversion between degrees Baume
3911# and the boiling point measure has proved elusive. This table appeared in one
3912# text, and provides a fragmentary relationship to the concentration.
3913#
3914# temp(C) conc (%)
3915# 100 30
3916# 101 40
3917# 102 50
3918# 103 60
3919# 106 70
3920# 112 80
3921# 123 90
3922# 140 95
3923# 151 97
3924# 160 98.2
3925# 166 99.5
3926# 171 99.6
3927#
3928# The best source identified to date came from "Boiling point elevation of
3929# technical sugarcane solutions and its use in automatic pan boiling" by
3930# Michael Saska. International Sugar Journal, 2002, 104, 1247, pp 500-507.
3931#
3932# But I'm using equation (3) which is credited to Starzak and Peacock,
3933# "Water activity coefficient in aqueous solutions of sucrose--A comprehensive
3934# data analysis. Zuckerindustrie, 122, 380-387. (I couldn't find this
3935# document.)
3936#
3937# Note that the range of validity is uncertain, but answers are in agreement
3938# with the above table all the way to 99.6.
3939#
3940# The original equation has a parameter for the boiling point of water, which
3941# of course varies with altitude. It also includes various other model
3942# parameters. The input is the molar concentration of sucrose in the solution,
3943# (moles sucrose) / (total moles).
3944#
3945# Bsp 3797.06 degC
3946# Csp 226.28 degC
3947# QQ -17638 J/mol
3948# asp -1.0038
3949# bsp -0.24653
3950# tbw 100 degC # boiling point of water
3951# sugar_bpe_orig(x) ((1-QQ/R Bsp * x^2 (1+asp x + bsp x^2) (tbw + Csp) \
3952# /(tbw+stdtemp)) / (1+(tbw + Csp)/Bsp *ln(1-x))-1) * (tbw + Csp)
3953#
3954# To convert mass concentration (brix) to molar concentration
3955#
3956# sc(x) (x / 342.3) / (( x/342.3) + (100-x)/18.02); \
3957# 100 sc 342.3|18.02 / (sc (342.3|18.02-1)+1)
3958#
3959# Here is a simplified version of this equation where the temperature of boiling
3960# water has been fixed at 100 degrees Celsius and the argument is now the
3961# concentration (brix).
3962#
3963# sugar_bpe(x) ((1+ 0.48851085 * sc(x)^2 (1+ -1.0038 sc(x) + -0.24653 sc(x)^2)) \
3964# / (1+0.08592964 ln(1-sc(x)))-1) 326.28 K
3965#
3966#
3967# The formula is not invertible, so to implement it in units we unfortunately
3968# must turn it into a table.
3969
3970# This table gives the boiling point elevation as a function of the sugar syrup
3971# concentration expressed as a percentage.
3972
3973sugar_conc_bpe[K] \
3974 0 0.0000 5 0.0788 10 0.1690 15 0.2729 20 0.3936 25 0.5351 \
397530 0.7027 35 0.9036 40 1.1475 42 1.2599 44 1.3825 46 1.5165 \
397648 1.6634 50 1.8249 52 2.0031 54 2.2005 56 2.4200 58 2.6651 \
397760 2.9400 61 3.0902 62 3.2499 63 3.4198 64 3.6010 65 3.7944 \
397866 4.0012 67 4.2227 68 4.4603 69 4.7156 70 4.9905 71 5.2870 \
397972 5.6075 73 5.9546 74 6.3316 75 6.7417 76 7.1892 77 7.6786 \
398078.0 8.2155 79.0 8.8061 80.0 9.4578 80.5 9.8092 81.0 10.1793 \
398181.5 10.5693 82.0 10.9807 82.5 11.4152 83.0 11.8743 83.5 12.3601 \
398284.0 12.8744 84.5 13.4197 85.0 13.9982 85.5 14.6128 86.0 15.2663 \
398386.5 15.9620 87.0 16.7033 87.5 17.4943 88.0 18.3391 88.5 19.2424 \
398489.0 20.2092 89.5 21.2452 90.0 22.3564 90.5 23.5493 91.0 24.8309 \
398591.5 26.2086 92.0 27.6903 92.5 29.2839 93.0 30.9972 93.5 32.8374 \
398694.0 34.8104 94.5 36.9195 95.0 39.1636 95.5 41.5348 96.0 44.0142 \
398796.5 46.5668 97.0 49.1350 97.5 51.6347 98.0 53.9681 98.1 54.4091 \
398898.2 54.8423 98.3 55.2692 98.4 55.6928 98.5 56.1174 98.6 56.5497 \
398998.7 56.9999 98.8 57.4828 98.9 58.0206 99.0 58.6455 99.1 59.4062 \
399099.2 60.3763 99.3 61.6706 99.4 63.4751 99.5 66.1062 99.6 70.1448 \
399199.7 76.7867
3992
3993# Using the brix table we can use this to produce a mapping from boiling point
3994# to density which makes all of the units interconvertible. Because the brix
3995# table stops at 95 this approach works up to a boiling point elevation of 39 K
3996# or a boiling point of 139 C / 282 F, which is the "soft crack" stage in candy
3997# making. The "hard crack" stage continues up to 310 F.
3998
3999# Boiling point elevation
4000sugar_bpe(T) units=[K;g/cm^3] domain=[0,39.1636] range=[0.99717,1.5144619] \
4001 brix(~sugar_conc_bpe(T)); sugar_conc_bpe(~brix(sugar_bpe))
4002# Absolute boiling point (produces an absolute temperature)
4003sugar_bp(T) units=[K;g/cm^3] domain=[373.15,412.3136] \
4004 range=[0.99717,1.5144619] \
4005 brix(~sugar_conc_bpe(T-tempC(100))) ;\
4006 sugar_conc_bpe(~brix(sugar_bp))+tempC(100)
4007
4008# In practice dealing with the absolute temperature is annoying because it is
4009# not possible to convert to a nested function, so you're stuck retyping the
4010# absolute temperature in Kelvins to convert to celsius or Fahrenheit. To
4011# prevent this we supply definitions that build in the temperature conversion
4012# and produce results in the Fahrenheit and Celsius scales. So using these
4013# measures, to convert 46 degrees Baume to a Fahrenheit boiling point:
4014#
4015# You have: baume(45)
4016# You want: sugar_bpF
4017# 239.05647
4018#
4019sugar_bpF(T) units=[1;g/cm^3] domain=[212,282.49448] range=[0.99717,1.5144619]\
4020 brix(~sugar_conc_bpe(tempF(T)+-tempC(100))) ;\
4021 ~tempF(sugar_conc_bpe(~brix(sugar_bpF))+tempC(100))
4022sugar_bpC(T) units=[1;g/cm^3] domain=[100,139.1636] range=[0.99717,1.5144619]\
4023 brix(~sugar_conc_bpe(tempC(T)+-tempC(100))) ;\
4024 ~tempC(sugar_conc_bpe(~brix(sugar_bpC))+tempC(100))
4025
4026# Degrees Baume is used in European recipes to specify the density of a sugar
4027# syrup. An entirely different definition is used for densities below
4028# 1 g/cm^3. An arbitrary constant appears in the definition. This value is
4029# equal to 145 in the US, but was according to [], the old scale used in
4030# Holland had a value of 144, and the new scale or Gerlach scale used 146.78.
4031
4032baumeconst 145 # US value
4033baume(d) units=[1;g/cm^3] domain=[0,145) range=[1,) \
4034 (baumeconst/(baumeconst+-d)) g/cm^3 ; \
4035 (baume+((-g)/cm^3)) baumeconst / baume
4036
4037# It's not clear if this value was ever used with negative degrees.
4038twaddell(x) units=[1;g/cm^3] domain=[-200,) range=[0,) \
4039 (1 + 0.005 x) g / cm^3 ; \
4040 200 (twaddell / (g/cm^3) +- 1)
4041
4042# The degree quevenne is a unit for measuring the density of milk.
4043# Similarly it's unclear if negative values were allowed here.
4044quevenne(x) units=[1;g/cm^3] domain=[-1000,) range=[0,) \
4045 (1 + 0.001 x) g / cm^3 ; \
4046 1000 (quevenne / (g/cm^3) +- 1)
4047
4048# Degrees brix measures sugar concentration by weigh as a percentage, so a
4049# solution that is 3 degrees brix is 3% sugar by weight. This unit was named
4050# after Adolf Brix who invented a hydrometer that read this percentage
4051# directly. This data is from Table 114 of NIST Circular 440, "Polarimetry,
4052# Saccharimetry and the Sugars". It gives apparent specific gravity at 20
4053# degrees Celsius of various sugar concentrations. As rendered below this
4054# data is converted to apparent density at 20 degrees Celsius using the
4055# density figure for water given in the same NIST reference. They use the
4056# word "apparent" to refer to measurements being made in air with brass
4057# weights rather than vacuum.
4058
4059brix[0.99717g/cm^3]\
4060 0 1.00000 1 1.00390 2 1.00780 3 1.01173 4 1.01569 5 1.01968 \
4061 6 1.02369 7 1.02773 8 1.03180 9 1.03590 10 1.04003 11 1.04418 \
4062 12 1.04837 13 1.05259 14 1.05683 15 1.06111 16 1.06542 17 1.06976 \
4063 18 1.07413 19 1.07853 20 1.08297 21 1.08744 22 1.09194 23 1.09647 \
4064 24 1.10104 25 1.10564 26 1.11027 27 1.11493 28 1.11963 29 1.12436 \
4065 30 1.12913 31 1.13394 32 1.13877 33 1.14364 34 1.14855 35 1.15350 \
4066 36 1.15847 37 1.16349 38 1.16853 39 1.17362 40 1.17874 41 1.18390 \
4067 42 1.18910 43 1.19434 44 1.19961 45 1.20491 46 1.21026 47 1.21564 \
4068 48 1.22106 49 1.22652 50 1.23202 51 1.23756 52 1.24313 53 1.24874 \
4069 54 1.25439 55 1.26007 56 1.26580 57 1.27156 58 1.27736 59 1.28320 \
4070 60 1.28909 61 1.29498 62 1.30093 63 1.30694 64 1.31297 65 1.31905 \
4071 66 1.32516 67 1.33129 68 1.33748 69 1.34371 70 1.34997 71 1.35627 \
4072 72 1.36261 73 1.36900 74 1.37541 75 1.38187 76 1.38835 77 1.39489 \
4073 78 1.40146 79 1.40806 80 1.41471 81 1.42138 82 1.42810 83 1.43486 \
4074 84 1.44165 85 1.44848 86 1.45535 87 1.46225 88 1.46919 89 1.47616 \
4075 90 1.48317 91 1.49022 92 1.49730 93 1.50442 94 1.51157 95 1.51876
4076
4077# Density measure invented by the American Petroleum Institute. Lighter
4078# petroleum products are more valuable, and they get a higher API degree.
4079#
4080# The intervals of range and domain should be open rather than closed.
4081#
4082apidegree(x) units=[1;g/cm^3] domain=[-131.5,) range=[0,) \
4083 141.5 g/cm^3 / (x+131.5) ; \
4084 141.5 (g/cm^3) / apidegree + (-131.5)
4085#
4086# Average densities of various woods (dried)
4087# Data from The Wood Database https://www.wood-database.com
4088#
4089
4090# North American Hardwoods
4091
4092wood_cherry 35 lb/ft^3
4093wood_redoak 44 lb/ft^3
4094wood_whiteoak 47 lb/ft^3
4095wood_blackwalnut 38 lb/ft^3
4096wood_walnut wood_blackwalnut
4097wood_birch 43 lb/ft^3
4098wood_hardmaple 44 lb/ft^3
4099
4100wood_bigleafmaple 34 lb/ft^3
4101wood_boxeldermaple 30 lb/ft^3
4102wood_redmaple 38 lb/ft^3
4103wood_silvermaple 33 lb/ft^3
4104wood_stripedmaple 32 lb/ft^3
4105wood_softmaple (wood_bigleafmaple \
4106 + wood_boxeldermaple \
4107 + wood_redmaple \
4108 + wood_silvermaple \
4109 + wood_stripedmaple) / 5
4110wood_poplar 29 lb/ft^3
4111wood_beech 45 lb/ft^3
4112
4113# North American Softwoods
4114
4115wood_jeffreypine 28 lb/ft^3
4116wood_ocotepine 44 lb/ft^3
4117wood_ponderosapine 28 lb/ft^3
4118
4119wood_loblollypine 35 lb/ft^3
4120wood_longleafpine 41 lb/ft^3
4121wood_shortleafpine 35 lb/ft^3
4122wood_slashpine 41 lb/ft^3
4123wood_yellowpine (wood_loblollypine \
4124 + wood_longleafpine \
4125 + wood_shortleafpine \
4126 + wood_slashpine) / 4
4127wood_redpine 34 lb/ft^3
4128
4129wood_easternwhitepine 25 lb/ft^3
4130wood_westernwhitepine 27 lb/ft^3
4131wood_whitepine (wood_easternwhitepine + wood_westernwhitepine) / 2
4132
4133wood_douglasfir 32 lb/ft^3
4134
4135wood_blackspruce 28 lb/ft^3
4136wood_engelmannspruce 24 lb/ft^3
4137wood_redspruce 27 lb/ft^3
4138wood_sitkaspruce 27 lb/ft^3
4139wood_whitespruce 27 lb/ft^3
4140wood_spruce (wood_blackspruce \
4141 + wood_engelmannspruce \
4142 + wood_redspruce \
4143 + wood_sitkaspruce \
4144 + wood_whitespruce) / 5
4145
4146# Other woods
4147
4148wood_basswood 26 lb/ft^3
4149wood_balsa 9 lb/ft^3
4150wood_ebony_gaboon 60 lb/ft^3
4151wood_ebony_macassar 70 lb/ft^3
4152wood_mahogany 37 lb/ft^3 # True (Honduran) mahogany,
4153 # Swietenia macrophylla
4154wood_teak 41 lb/ft^3
4155wood_rosewood_brazilian 52 lb/ft^3
4156wood_rosewood_honduran 64 lb/ft^3
4157wood_rosewood_indian 52 lb/ft^3
4158wood_cocobolo 69 lb/ft^3
4159wood_bubinga 56 lb/ft^3
4160wood_zebrawood 50 lb/ft^3
4161wood_koa 38 lb/ft^3
4162wood_snakewood 75.7 lb/ft^3
4163wood_lignumvitae 78.5 lb/ft^3
4164wood_blackwood 79.3 lb/ft^3
4165wood_blackironwood 84.5 lb/ft^3 # Krugiodendron ferreum, listed
4166 # in database as the heaviest wood
4167
4168#
4169# Modulus of elasticity of selected woods.
4170# Data from The Wood Database https://www.wood-database.com
4171#
4172
4173# North American Hardwoods
4174
4175wood_mod_beech 1.720e6 lbf/in^2
4176wood_mod_birchyellow 2.010e6 lbf/in^2
4177wood_mod_birch wood_mod_birchyellow
4178wood_mod_cherry 1.490e6 lbf/in^2
4179wood_mod_hardmaple 1.830e6 lbf/in^2
4180
4181wood_mod_bigleafmaple 1.450e6 lbf/in^2
4182wood_mod_boxeldermaple 1.050e6 lbf/in^2
4183wood_mod_redmaple 1.640e6 lbf/in^2
4184wood_mod_silvermaple 1.140e6 lbf/in^2
4185wood_mod_softmaple (wood_mod_bigleafmaple \
4186 + wood_mod_boxeldermaple \
4187 + wood_mod_redmaple \
4188 + wood_mod_silvermaple) / 4
4189
4190wood_mod_redoak 1.761e6 lbf/in^2
4191wood_mod_whiteoak 1.762e6 lbf/in^2
4192wood_mod_poplar 1.580e6 lbf/in^2
4193wood_mod_blackwalnut 1.680e6 lbf/in^2
4194wood_mod_walnut wood_mod_blackwalnut
4195
4196# North American Softwoods
4197
4198wood_mod_jeffreypine 1.240e6 lbf/in^2
4199wood_mod_ocotepine 2.209e6 lbf/in^2
4200wood_mod_ponderosapine 1.290e6 lbf/in^2
4201
4202wood_mod_loblollypine 1.790e6 lbf/in^2
4203wood_mod_longleafpine 1.980e6 lbf/in^2
4204wood_mod_shortleafpine 1.750e6 lbf/in^2
4205wood_mod_slashpine 1.980e6 lbf/in^2
4206wood_mod_yellowpine (wood_mod_loblollypine \
4207 + wood_mod_longleafpine \
4208 + wood_mod_shortleafpine \
4209 + wood_mod_slashpine) / 4
4210
4211wood_mod_redpine 1.630e6 lbf/in^2
4212
4213wood_mod_easternwhitepine 1.240e6 lbf/in^2
4214wood_mod_westernwhitepine 1.460e6 lbf/in^2
4215wood_mod_whitepine (wood_mod_easternwhitepine + \
4216 wood_mod_westernwhitepine) / 2
4217
4218wood_mod_douglasfir 1.765e6 lbf/in^2
4219
4220wood_mod_blackspruce 1.523e6 lbf/in^2
4221wood_mod_englemannspruce 1.369e6 lbf/in^2
4222wood_mod_redspruce 1.560e6 lbf/in^2
4223wood_mod_sitkaspruce 1.600e6 lbf/in^2
4224wood_mod_whitespruce 1.315e6 lbf/in^2
4225wood_mod_spruce (wood_mod_blackspruce \
4226 + wood_mod_englemannspruce \
4227 + wood_mod_redspruce + wood_mod_sitkaspruce \
4228 + wood_mod_whitespruce) / 5
4229
4230# Other woods
4231
4232wood_mod_balsa 0.538e6 lbf/in^2
4233wood_mod_basswood 1.460e6 lbf/in^2
4234wood_mod_blackwood 2.603e6 lbf/in^2 # African, Dalbergia melanoxylon
4235wood_mod_bubinga 2.670e6 lbf/in^2
4236wood_mod_cocobolo 2.712e6 lbf/in^2
4237wood_mod_ebony_gaboon 2.449e6 lbf/in^2
4238wood_mod_ebony_macassar 2.515e6 lbf/in^2
4239wood_mod_blackironwood 2.966e6 lbf/in^2 # Krugiodendron ferreum
4240wood_mod_koa 1.503e6 lbf/in^2
4241wood_mod_lignumvitae 2.043e6 lbf/in^2
4242wood_mod_mahogany 1.458e6 lbf/in^2 # True (Honduran) mahogany,
4243 # Swietenia macrophylla
4244wood_mod_rosewood_brazilian 2.020e6 lbf/in^2
4245wood_mod_rosewood_honduran 3.190e6 lbf/in^2
4246wood_mod_rosewood_indian 1.668e6 lbf/in^2
4247wood_mod_snakewood 3.364e6 lbf/in^2
4248wood_mod_teak 1.781e6 lbf/in^2
4249wood_mod_zebrawood 2.374e6 lbf/in^2
4250
4251#
4252# Area of countries and other regions. This is the "total area" which
4253# includes land and water areas within international boundaries and
4254# coastlines. Data from January, 2019.
4255#
4256# except as noted, sources are
4257# https://en.wikipedia.org/wiki/List_of_countries_and_dependencies_by_area
4258# US Central Intelligence Agency: The World Factbook
4259# https://www.cia.gov/the-world-factbook/
4260
4261area_russia 17098246 km^2
4262area_antarctica 14000000 km^2
4263# area_canada is covered below as sum of province and territory areas
4264area_china 9596961 km^2
4265# area_unitedstates is covered below as sum of state areas
4266# includes only the 50 states and District of Columbia
4267area_us area_unitedstates
4268area_brazil 8515767 km^2
4269area_australia 7692024 km^2
4270# area_europeanunion is covered below as sum of member areas
4271area_india 3287263 km^2
4272area_argentina 2780400 km^2
4273area_kazakhstan 2724900 km^2
4274area_algeria 2381741 km^2
4275area_drcongo 2344858 km^2
4276area_greenland 2166086 km^2
4277area_saudiarabia 2149690 km^2
4278area_mexico 1964375 km^2
4279area_indonesia 1910931 km^2
4280area_sudan 1861484 km^2
4281area_libya 1759540 km^2
4282area_iran 1648195 km^2
4283area_mongolia 1564110 km^2
4284area_peru 1285216 km^2
4285area_chad 1284000 km^2
4286area_niger 1267000 km^2
4287area_angola 1246700 km^2
4288area_mali 1240192 km^2
4289area_southafrica 1221037 km^2
4290area_colombia 1141748 km^2
4291area_ethiopia 1104300 km^2
4292area_bolivia 1098581 km^2
4293area_mauritania 1030700 km^2
4294area_egypt 1002450 km^2
4295area_tanzania 945087 km^2
4296area_nigeria 923768 km^2
4297area_venezuela 916445 km^2
4298area_pakistan 881912 km^2
4299area_namibia 825615 km^2
4300area_mozambique 801590 km^2
4301area_turkey 783562 km^2
4302area_chile 756102 km^2
4303area_zambia 752612 km^2
4304area_myanmar 676578 km^2
4305area_burma area_myanmar
4306area_afghanistan 652230 km^2
4307area_southsudan 644329 km^2
4308area_france 640679 km^2
4309area_somalia 637657 km^2
4310area_centralafrica 622984 km^2
4311area_ukraine 603500 km^2
4312area_crimea 27000 km^2 # occupied by Russia; included in
4313 # (Encyclopedia Britannica)
4314area_madagascar 587041 km^2
4315area_botswana 581730 km^2
4316area_kenya 580367 km^2
4317area_yemen 527968 km^2
4318area_thailand 513120 km^2
4319area_spain 505992 km^2
4320area_turkmenistan 488100 km^2
4321area_cameroon 475422 km^2
4322area_papuanewguinea 462840 km^2
4323area_sweden 450295 km^2
4324area_uzbekistan 447400 km^2
4325area_morocco 446550 km^2
4326area_iraq 438317 km^2
4327area_paraguay 406752 km^2
4328area_zimbabwe 390757 km^2
4329area_japan 377973 km^2
4330area_germany 357114 km^2
4331area_congorepublic 342000 km^2
4332area_finland 338424 km^2
4333area_vietnam 331212 km^2
4334area_malaysia 330803 km^2
4335area_norway 323802 km^2
4336area_ivorycoast 322463 km^2
4337area_poland 312696 km^2
4338area_oman 309500 km^2
4339area_italy 301339 km^2
4340area_philippines 300000 km^2
4341area_ecuador 276841 km^2
4342area_burkinafaso 274222 km^2
4343area_newzealand 270467 km^2
4344area_gabon 267668 km^2
4345area_westernsahara 266000 km^2
4346area_guinea 245857 km^2
4347# area_unitedkingdom is covered below
4348area_uganda 241550 km^2
4349area_ghana 238533 km^2
4350area_romania 238397 km^2
4351area_laos 236800 km^2
4352area_guyana 214969 km^2
4353area_belarus 207600 km^2
4354area_kyrgyzstan 199951 km^2
4355area_senegal 196722 km^2
4356area_syria 185180 km^2
4357area_golanheights 1150 km^2 # occupied by Israel; included in
4358 # Syria (Encyclopedia Britannica)
4359area_cambodia 181035 km^2
4360area_uruguay 176215 km^2
4361area_somaliland 176120 km^2
4362area_suriname 163820 km^2
4363area_tunisia 163610 km^2
4364area_bangladesh 147570 km^2
4365area_nepal 147181 km^2
4366area_tajikistan 143100 km^2
4367area_greece 131990 km^2
4368area_nicaragua 130373 km^2
4369area_northkorea 120540 km^2
4370area_malawi 118484 km^2
4371area_eritrea 117600 km^2
4372area_benin 114763 km^2
4373area_honduras 112492 km^2
4374area_liberia 111369 km^2
4375area_bulgaria 110879 km^2
4376area_cuba 109884 km^2
4377area_guatemala 108889 km^2
4378area_iceland 103000 km^2
4379area_southkorea 100210 km^2
4380area_hungary 93028 km^2
4381area_portugal 92090 km^2
4382area_jordan 89342 km^2
4383area_serbia 88361 km^2
4384area_azerbaijan 86600 km^2
4385area_austria 83871 km^2
4386area_uae 83600 km^2
4387area_czechia 78865 km^2
4388area_czechrepublic area_czechia
4389area_panama 75417 km^2
4390area_sierraleone 71740 km^2
4391area_ireland 70273 km^2
4392area_georgia 69700 km^2
4393area_srilanka 65610 km^2
4394area_lithuania 65300 km^2
4395area_latvia 64559 km^2
4396area_togo 56785 km^2
4397area_croatia 56594 km^2
4398area_bosnia 51209 km^2
4399area_costarica 51100 km^2
4400area_slovakia 49037 km^2
4401area_dominicanrepublic 48671 km^2
4402area_estonia 45227 km^2
4403area_denmark 43094 km^2
4404area_netherlands 41850 km^2
4405area_switzerland 41284 km^2
4406area_bhutan 38394 km^2
4407area_taiwan 36193 km^2
4408area_guineabissau 36125 km^2
4409area_moldova 33846 km^2
4410area_belgium 30528 km^2
4411area_lesotho 30355 km^2
4412area_armenia 29743 km^2
4413area_solomonislands 28896 km^2
4414area_albania 28748 km^2
4415area_equitorialguinea 28051 km^2
4416area_burundi 27834 km^2
4417area_haiti 27750 km^2
4418area_rwanda 26338 km^2
4419area_northmacedonia 25713 km^2
4420area_djibouti 23200 km^2
4421area_belize 22966 km^2
4422area_elsalvador 21041 km^2
4423area_israel 20770 km^2
4424area_slovenia 20273 km^2
4425area_fiji 18272 km^2
4426area_kuwait 17818 km^2
4427area_eswatini 17364 km^2
4428area_easttimor 14919 km^2
4429area_bahamas 13943 km^2
4430area_montenegro 13812 km^2
4431area_vanatu 12189 km^2
4432area_qatar 11586 km^2
4433area_gambia 11295 km^2
4434area_jamaica 10991 km^2
4435area_kosovo 10887 km^2
4436area_lebanon 10452 km^2
4437area_cyprus 9251 km^2
4438area_puertorico 9104 km^2 # United States territory; not included
4439 # in United States area
4440area_westbank 5860 km^2 # (CIA World Factbook)
4441area_hongkong 2755 km^2
4442area_luxembourg 2586 km^2
4443area_singapore 716 km^2
4444area_gazastrip 360 km^2 # (CIA World Factbook)
4445area_malta 316 km^2 # smallest EU country
4446area_liechtenstein 160 km^2
4447area_monaco 2.02 km^2
4448area_vaticancity 0.44 km^2
4449
4450# Members as of 1 Feb 2020
4451area_europeanunion area_austria + area_belgium + area_bulgaria \
4452 + area_croatia + area_cyprus + area_czechia + area_denmark \
4453 + area_estonia + area_finland + area_france + area_germany \
4454 + area_greece + area_hungary + area_ireland + area_italy \
4455 + area_latvia + area_lithuania + area_luxembourg \
4456 + area_malta + area_netherlands + area_poland \
4457 + area_portugal + area_romania + area_slovakia \
4458 + area_slovenia + area_spain + area_sweden
4459area_eu area_europeanunion
4460
4461#
4462# Areas of the individual US states
4463#
4464# https://en.wikipedia.org/wiki/List_of_U.S._states_and_territories_by_area
4465#
4466# United States Summary: 2010, Population and Housing Unit Counts, Table 18, p. 41
4467# Issued September 2012
4468
4469area_alaska 1723336.8 km^2
4470area_texas 695661.6 km^2
4471area_california 423967.4 km^2
4472area_montana 380831.1 km^2
4473area_newmexico 314917.4 km^2
4474area_arizona 295233.5 km^2
4475area_nevada 286379.7 km^2
4476area_colorado 269601.4 km^2
4477area_oregon 254799.2 km^2
4478area_wyoming 253334.5 km^2
4479area_michigan 250486.8 km^2
4480area_minnesota 225162.8 km^2
4481area_utah 219881.9 km^2
4482area_idaho 216442.6 km^2
4483area_kansas 213100.0 km^2
4484area_nebraska 200329.9 km^2
4485area_southdakota 199728.7 km^2
4486area_washington 184660.8 km^2
4487area_northdakota 183107.8 km^2
4488area_oklahoma 181037.2 km^2
4489area_missouri 180540.3 km^2
4490area_florida 170311.7 km^2
4491area_wisconsin 169634.8 km^2
4492area_georgia_us 153910.4 km^2
4493area_illinois 149995.4 km^2
4494area_iowa 145745.9 km^2
4495area_newyork 141296.7 km^2
4496area_northcarolina 139391.0 km^2
4497area_arkansas 137731.8 km^2
4498area_alabama 135767.4 km^2
4499area_louisiana 135658.7 km^2
4500area_mississippi 125437.7 km^2
4501area_pennsylvania 119280.2 km^2
4502area_ohio 116097.7 km^2
4503area_virginia 110786.6 km^2
4504area_tennessee 109153.1 km^2
4505area_kentucky 104655.7 km^2
4506area_indiana 94326.2 km^2
4507area_maine 91633.1 km^2
4508area_southcarolina 82932.7 km^2
4509area_westvirginia 62755.5 km^2
4510area_maryland 32131.2 km^2
4511area_hawaii 28313.0 km^2
4512area_massachusetts 27335.7 km^2
4513area_vermont 24906.3 km^2
4514area_newhampshire 24214.2 km^2
4515area_newjersey 22591.4 km^2
4516area_connecticut 14357.4 km^2
4517area_delaware 6445.8 km^2
4518area_rhodeisland 4001.2 km^2
4519area_districtofcolumbia 177.0 km^2
4520
4521area_unitedstates area_alabama + area_alaska + area_arizona \
4522 + area_arkansas + area_california + area_colorado \
4523 + area_connecticut + area_delaware \
4524 + area_districtofcolumbia + area_florida \
4525 + area_georgia_us + area_hawaii + area_idaho \
4526 + area_illinois + area_indiana + area_iowa \
4527 + area_kansas + area_kentucky + area_louisiana \
4528 + area_maine + area_maryland + area_massachusetts \
4529 + area_michigan + area_minnesota + area_mississippi \
4530 + area_missouri + area_montana + area_nebraska \
4531 + area_nevada + area_newhampshire + area_newjersey \
4532 + area_newmexico + area_newyork + area_northcarolina \
4533 + area_northdakota + area_ohio + area_oklahoma \
4534 + area_oregon + area_pennsylvania + area_rhodeisland \
4535 + area_southcarolina + area_southdakota \
4536 + area_tennessee + area_texas + area_utah \
4537 + area_vermont + area_virginia + area_washington \
4538 + area_westvirginia + area_wisconsin + area_wyoming
4539
4540# Total area of Canadian province and territories
4541#
4542# Statistics Canada, "Land and freshwater area, by province and territory",
4543# 2016-10-07:
4544#
4545# https://www150.statcan.gc.ca/n1/pub/11-402-x/2012000/chap/geo/tbl/tbl06-eng.htm
4546
4547area_ontario 1076395 km^2 # confederated 1867-Jul-01
4548area_quebec 1542056 km^2 # confederated 1867-Jul-01
4549area_novascotia 55284 km^2 # confederated 1867-Jul-01
4550area_newbrunswick 72908 km^2 # confederated 1867-Jul-01
4551area_canada_original area_ontario + area_quebec + area_novascotia \
4552 + area_newbrunswick
4553area_manitoba 647797 km^2 # confederated 1870-Jul-15
4554area_britishcolumbia 944735 km^2 # confederated 1871-Jul-20
4555area_princeedwardisland 5660 km^2 # confederated 1873-Jul-01
4556area_canada_additional area_manitoba + area_britishcolumbia \
4557 + area_princeedwardisland
4558area_alberta 661848 km^2 # confederated 1905-Sep-01
4559area_saskatchewan 651036 km^2 # confederated 1905-Sep-01
4560area_newfoundlandandlabrador 405212 km^2 # confederated 1949-Mar-31
4561area_canada_recent area_alberta + area_saskatchewan \
4562 + area_newfoundlandandlabrador
4563area_canada_provinces area_canada_original + area_canada_additional \
4564 + area_canada_recent
4565area_northwestterritories 1346106 km^2 # NT confederated 1870-Jul-15
4566area_yukon 482443 km^2 # YT confederated 1898-Jun-13
4567area_nunavut 2093190 km^2 # NU confederated 1999-Apr-01
4568area_canada_territories area_northwestterritories + area_yukon \
4569 + area_nunavut
4570area_canada area_canada_provinces + area_canada_territories
4571
4572# area-uk-countries.units - UK country (/province) total areas
4573# https://en.wikipedia.org/wiki/Countries_of_the_United_Kingdom#Statistics
4574# GB is official UK country code for some purposes but internally is a Kingdom
4575#
4576# areas from A Beginners Guide to UK Geography 2019 v1.0, Office for National Statistics
4577# England: country; 0927-Jul-12 united; 1603-Mar-24 union of crowns
4578area_england 132947.76 km^2
4579#
4580# Wales: 1282 conquered; 1535 union; principality until 2011
4581area_wales 21224.48 km^2
4582#
4583# England and Wales: nation; 1535 union
4584area_englandwales area_england + area_wales
4585#
4586# Scotland: country; ~900 united; 1603-Mar-24 union of crowns
4587area_scotland 80226.36 km^2
4588#
4589# Great Britain: kingdom; excludes NI;
4590# 1707 Treaty and Acts of Union: union of parliaments
4591area_greatbritain area_england + area_wales + area_scotland
4592area_gb area_greatbritain
4593#
4594# Northern Ireland: province; Ireland: 1177 Henry II lordship;
4595# 1542 Henry VIII kingdom; 1652 Cromwell commonwealth;
4596# 1691 William III kingdom; 1800 Acts of Union: UK of GB & Ireland;
4597# 1921 Irish Free State independent of UK
4598area_northernireland 14133.38 km^2
4599#
4600# United Kingdom of GB & NI: 1800 Acts of Union: UK of GB & Ireland;
4601# 1921 Irish Free State independent of UK
4602area_unitedkingdom area_greatbritain + area_northernireland
4603area_uk area_unitedkingdom
4604
4605#
4606# Units derived from imperial system
4607#
4608
4609ouncedal oz ft / s^2 # force which accelerates an ounce
4610 # at 1 ft/s^2
4611poundal lb ft / s^2 # same thing for a pound
4612tondal longton ft / s^2 # and for a ton
4613pdl poundal
4614osi ounce force / inch^2 # used in aviation
4615psi pound force / inch^2
4616psia psi # absolute pressure
4617 # Note that gauge pressure can be given
4618 # using the gaugepressure() and
4619 # psig() nonlinear unit definitions
4620tsi ton force / inch^2
4621reyn psi sec
4622slug lbf s^2 / ft
4623slugf slug force
4624slinch lbf s^2 / inch # Mass unit derived from inch second
4625slinchf slinch force # pound-force system. Used in space
4626 # applications where in/sec^2 was a
4627 # natural acceleration measure.
4628geepound slug
4629lbf lb force
4630tonf ton force
4631lbm lb
4632kip 1000 lbf # from kilopound
4633ksi kip / in^2
4634mil 0.001 inch
4635thou 0.001 inch
4636tenth 0.0001 inch # one tenth of one thousandth of an inch
4637millionth 1e-6 inch # one millionth of an inch
4638circularinch 1|4 pi in^2 # area of a one-inch diameter circle
4639circleinch circularinch # A circle with diameter d inches has
4640 # an area of d^2 circularinches
4641cylinderinch circleinch inch # Cylinder h inch tall, d inches diameter
4642 # has volume d^2 h cylinder inches
4643circularmil 1|4 pi mil^2 # area of one-mil diameter circle
4644cmil circularmil
4645cental 100 pound
4646centner cental
4647
4648# Shotgun gauge measures the inside diameter of the barrel by counting
4649# the number of spherical lead balls you can make to fit that barrel
4650# using a pound of lead. Equivalently, this means that an n gauge gun
4651# has a bore diameter that fits a ball of lead that weighs 1|n pounds
4652
4653shotgungauge(ga) units=[1;m] domain=(0,] range=(0,] \
4654 2 ~spherevol(1 pound / ga leaddensity) ; \
4655 1 pound / leaddensity spherevol(shotgungauge/2)
4656shotgunga() shotgungauge
4657caliber 0.01 inch # for measuring bullets
4658
4659duty ft lbf
4660celo ft / s^2
4661jerk ft / s^3
4662australiapoint 0.01 inch # The "point" is used to measure rainfall
4663 # in Australia
4664sabin ft^2 # Measure of sound absorption equal to the
4665 # absorbing power of one square foot of
4666 # a perfectly absorbing material. The
4667 # sound absorptivity of an object is the
4668 # area times a dimensionless
4669 # absorptivity coefficient.
4670standardgauge 4 ft + 8.5 in # Standard width between railroad track
4671flag 5 ft^2 # Construction term referring to sidewalk.
4672rollwallpaper 30 ft^2 # Area of roll of wall paper
4673fillpower in^3 / ounce # Density of down at standard pressure.
4674 # The best down has 750-800 fillpower.
4675pinlength 1|16 inch # A #17 pin is 17/16 in long in the USA.
4676buttonline 1|40 inch # The line was used in 19th century USA
4677 # to measure width of buttons.
4678beespace 1|4 inch # Bees will fill any space that is smaller
4679 # than the bee space and leave open
4680 # spaces that are larger. The size of
4681 # the space varies with species.
4682diamond 8|5 ft # Marking on US tape measures that is
4683 # useful to carpenters who wish to place
4684 # five studs in an 8 ft distance. Note
4685 # that the numbers appear in red every
4686 # 16 inches as well, giving six
4687 # divisions in 8 feet.
4688retmaunit 1.75 in # Height of rack mountable equipment.
4689U retmaunit # Equipment should be 1|32 inch narrower
4690RU U # than its U measurement indicates to
4691 # allow for clearance, so 4U=(6+31|32)in
4692 # RETMA stands for the former name of
4693 # the standardizing organization, Radio
4694 # Electronics Television Manufacturers
4695 # Association. This organization is now
4696 # called the Electronic Industries
4697 # Alliance (EIA) and the rack standard
4698 # is specified in EIA RS-310-D.
4699count per pound # For measuring the size of shrimp
4700flightlevel 100 ft # Flight levels are used to ensure safe
4701FL flightlevel # vertical separation between aircraft
4702 # despite variations in local air
4703 # pressure. Flight levels define
4704 # altitudes based on a standard air
4705 # pressure so that altimeter calibration
4706 # is not needed. This means that
4707 # aircraft at separated flight levels
4708 # are guaranteed to be separated.
4709 # Hence the definition of 100 feet is
4710 # a nominal, not true, measure.
4711 # Customarily written with no space in
4712 # the form FL290, which will not work in
4713 # units. But note "FL 290" will work.
4714
4715#
4716# Other units of work, energy, power, etc
4717#
4718
4719# Calorie: approximate energy to raise a gram of water one degree celsius
4720
4721calorie cal_th # Default is the thermochemical calorie
4722cal calorie
4723calorie_th 4.184 J # Thermochemical calorie, defined in 1930
4724thermcalorie calorie_th # by Frederick Rossini as 4.1833 J to
4725cal_th calorie_th # avoid difficulties associated with the
4726 # uncertainty in the heat capacity of
4727 # water. In 1948 the value of the joule
4728 # was changed, so the thermochemical
4729 # calorie was redefined to 4.184 J.
4730 # This kept the energy measured by this
4731 # unit the same.
4732calorie_IT 4.1868 J # International (Steam) Table calorie,
4733cal_IT calorie_IT # defined in 1929 as watt-hour/860 or
4734 # equivalently 180|43 joules. At this
4735 # time the international joule had a
4736 # different value than the modern joule,
4737 # and the values were different in the
4738 # USA and in Europe. In 1956 at the
4739 # Fifth International Conference on
4740 # Properties of Steam the exact
4741 # definition given here was adopted.
4742calorie_15 4.18580 J # Energy to go from 14.5 to 15.5 degC
4743cal_15 calorie_15
4744calorie_fifteen cal_15
4745calorie_20 4.18190 J # Energy to go from 19.5 to 20.5 degC
4746cal_20 calorie_20
4747calorie_twenty calorie_20
4748calorie_4 4.204 J # Energy to go from 3.5 to 4.5 degC
4749cal_4 calorie_4
4750calorie_four calorie_4
4751cal_mean 4.19002 J # 1|100 energy to go from 0 to 100 degC
4752Calorie kilocalorie # the food Calorie
4753thermie 1e6 cal_15 # Heat required to raise the
4754 # temperature of a tonne of
4755 # water from 14.5 to 15.5 degC.
4756
4757# btu definitions: energy to raise a pound of water 1 degF
4758
4759btu btu_IT # International Table BTU is the default
4760britishthermalunit btu
4761btu_IT cal_IT lb degF / gram K
4762btu_th cal_th lb degF / gram K
4763btu_mean cal_mean lb degF / gram K
4764btu_15 cal_15 lb degF / gram K
4765btu_ISO 1055.06 J # Exact, rounded ISO definition based
4766 # on the IT calorie
4767quad quadrillion btu
4768
4769ECtherm 1e5 btu_ISO # Exact definition
4770UStherm 1.054804e8 J # Exact definition
4771therm UStherm
4772
4773# Water latent heat from [23]
4774
4775water_fusion_heat 6.01 kJ/mol / (18.015 g/mol) # At 0 deg C
4776water_vaporization_heat 2256.4 J/g # At saturation, 100 deg C, 101.42 kPa
4777
4778# Specific heat capacities of various substances
4779#
4780# SPECFIC_HEAT ENERGY / MASS / TEMPERATURE_DIFFERENCE
4781# SPECFIC_HEAT_CAPACITY ENERGY / MASS / TEMPERATURE_DIFFERENCE
4782
4783specificheat_water calorie / g K
4784water_specificheat specificheat_water
4785 # Values from www.engineeringtoolbox.com/specific-heat-metals-d_152.html
4786specificheat_aluminum 0.91 J/g K
4787specificheat_antimony 0.21 J/g K
4788specificheat_barium 0.20 J/g K
4789specificheat_beryllium 1.83 J/g K
4790specificheat_bismuth 0.13 J/g K
4791specificheat_cadmium 0.23 J/g K
4792specificheat_cesium 0.24 J/g K
4793specificheat_chromium 0.46 J/g K
4794specificheat_cobalt 0.42 J/g K
4795specificheat_copper 0.39 J/g K
4796specificheat_gallium 0.37 J/g K
4797specificheat_germanium 0.32 J/g K
4798specificheat_gold 0.13 J/g K
4799specificheat_hafnium 0.14 J/g K
4800specificheat_indium 0.24 J/g K
4801specificheat_iridium 0.13 J/g K
4802specificheat_iron 0.45 J/g K
4803specificheat_lanthanum 0.195 J/g K
4804specificheat_lead 0.13 J/g K
4805specificheat_lithium 3.57 J/g K
4806specificheat_lutetium 0.15 J/g K
4807specificheat_magnesium 1.05 J/g K
4808specificheat_manganese 0.48 J/g K
4809specificheat_mercury 0.14 J/g K
4810specificheat_molybdenum 0.25 J/g K
4811specificheat_nickel 0.44 J/g K
4812specificheat_osmium 0.13 J/g K
4813specificheat_palladium 0.24 J/g K
4814specificheat_platinum 0.13 J/g K
4815specificheat_plutonum 0.13 J/g K
4816specificheat_potassium 0.75 J/g K
4817specificheat_rhenium 0.14 J/g K
4818specificheat_rhodium 0.24 J/g K
4819specificheat_rubidium 0.36 J/g K
4820specificheat_ruthenium 0.24 J/g K
4821specificheat_scandium 0.57 J/g K
4822specificheat_selenium 0.32 J/g K
4823specificheat_silicon 0.71 J/g K
4824specificheat_silver 0.23 J/g K
4825specificheat_sodium 1.21 J/g K
4826specificheat_strontium 0.30 J/g K
4827specificheat_tantalum 0.14 J/g K
4828specificheat_thallium 0.13 J/g K
4829specificheat_thorium 0.13 J/g K
4830specificheat_tin 0.21 J/g K
4831specificheat_titanium 0.54 J/g K
4832specificheat_tungsten 0.13 J/g K
4833specificheat_uranium 0.12 J/g K
4834specificheat_vanadium 0.39 J/g K
4835specificheat_yttrium 0.30 J/g K
4836specificheat_zinc 0.39 J/g K
4837specificheat_zirconium 0.27 J/g K
4838specificheat_ethanol 2.3 J/g K
4839specificheat_ammonia 4.6 J/g K
4840specificheat_freon 0.91 J/g K # R-12 at 0 degrees Fahrenheit
4841specificheat_gasoline 2.22 J/g K
4842specificheat_iodine 2.15 J/g K
4843specificheat_oliveoil 1.97 J/g K
4844
4845# en.wikipedia.org/wiki/Heat_capacity#Table_of_specific_heat_capacities
4846specificheat_hydrogen 14.3 J/g K
4847specificheat_helium 5.1932 J/g K
4848specificheat_argon 0.5203 J/g K
4849specificheat_tissue 3.5 J/g K
4850specificheat_diamond 0.5091 J/g K
4851specificheat_granite 0.79 J/g K
4852specificheat_graphite 0.71 J/g K
4853specificheat_ice 2.11 J/g K
4854specificheat_asphalt 0.92 J/g K
4855specificheat_brick 0.84 J/g K
4856specificheat_concrete 0.88 J/g K
4857specificheat_glass_silica 0.84 J/g K
4858specificheat_glass_flint 0.503 J/g K
4859specificheat_glass_pyrex 0.753 J/g K
4860specificheat_gypsum 1.09 J/g K
4861specificheat_marble 0.88 J/g K
4862specificheat_sand 0.835 J/g K
4863specificheat_soil 0.835 J/g K
4864specificheat_wood 1.7 J/g K
4865
4866specificheat_sucrose 1.244 J/g K #www.sugartech.co.za/heatcapacity/index.php
4867
4868
4869# Energy densities of various fuels
4870#
4871# Most of these fuels have varying compositions or qualities and hence their
4872# actual energy densities vary. These numbers are hence only approximate.
4873#
4874# E1. http://www.aps.org/policy/reports/popa-reports/energy/units.cfm
4875# E2. https://web.archive.org/web/20100825042309/http://www.ior.com.au/ecflist.html
4876
4877tonoil 1e10 cal_IT # Ton oil equivalent. A conventional
4878 # value for the energy released by
4879toe tonoil # burning one metric ton of oil. [18,E1]
4880 # Note that energy per mass of petroleum
4881 # products is fairly constant.
4882 # Variations in volumetric energy
4883 # density result from variations in the
4884 # density (kg/m^3) of different fuels.
4885 # This definition is given by the
4886 # IEA/OECD.
4887toncoal 7e9 cal_IT # Energy in metric ton coal from [18].
4888 # This is a nominal value which
4889 # is close to the heat content
4890 # of coal used in the 1950's
4891barreloil 5.8 Mbtu # Conventional value for barrel of crude
4892 # oil [E1]. Actual range is 5.6 - 6.3.
4893naturalgas_HHV 1027 btu/ft3 # Energy content of natural gas. HHV
4894naturalgas_LHV 930 btu/ft3 # is for Higher Heating Value and
4895naturalgas naturalgas_HHV # includes energy from condensation
4896 # combustion products. LHV is for Lower
4897 # Heating Value and excludes these.
4898 # American publications typically report
4899 # HHV whereas European ones report LHV.
4900charcoal 30 GJ/tonne
4901woodenergy_dry 20 GJ/tonne # HHV, a cord weights about a tonne
4902woodenergy_airdry 15 GJ/tonne # 20% moisture content
4903coal_bituminous 27 GJ / tonne
4904coal_lignite 15 GJ / tonne
4905coal_US 22 GJ / uston # Average for US coal (short ton), 1995
4906ethanol_HHV 84000 btu/usgallon
4907ethanol_LHV 75700 btu/usgallon
4908diesel 130500 btu/usgallon
4909gasoline_LHV 115000 btu/usgallon
4910gasoline_HHV 125000 btu/usgallon
4911gasoline gasoline_HHV
4912heating 37.3 MJ/liter
4913fueloil 39.7 MJ/liter # low sulphur
4914propane 93.3 MJ/m^3
4915butane 124 MJ/m^3
4916
4917# The US EPA defines a "miles per gallon equivalent" for alternative
4918# energy vehicles:
4919
4920mpg_e miles / gallon gasoline_LHV
4921MPGe mpg_e
4922
4923# These values give total energy from uranium fission. Actual efficiency
4924# of nuclear power plants is around 30%-40%. Note also that some reactors
4925# use enriched uranium around 3% U-235. Uranium during processing or use
4926# may be in a compound of uranium oxide or uranium hexafluoride, in which
4927# case the energy density would be lower depending on how much uranium is
4928# in the compound.
4929
4930uranium_pure 200 MeV avogadro / (235.0439299 g/mol) # Pure U-235
4931uranium_natural 0.7% uranium_pure # Natural uranium: 0.7% U-235
4932
4933# Celsius heat unit: energy to raise a pound of water 1 degC
4934
4935celsiusheatunit cal lb degC / gram K
4936chu celsiusheatunit
4937
4938# "Apparent" average power in an AC circuit, the product of rms voltage
4939# and rms current, equal to the true power in watts when voltage and
4940# current are in phase. In a DC circuit, always equal to the true power.
4941
4942VA volt ampere
4943
4944kWh kilowatt hour
4945
4946# The horsepower is supposedly the power of one horse pulling. Obviously
4947# different people had different horses.
4948
4949horsepower 550 foot pound force / sec # Invented by James Watt
4950mechanicalhorsepower horsepower
4951hp horsepower
4952metrichorsepower 75 kilogram force meter / sec # PS=Pferdestaerke in
4953electrichorsepower 746 W # Germany
4954boilerhorsepower 9809.50 W
4955waterhorsepower 746.043 W
4956brhorsepower horsepower # Value corrected Dec, 2019. Was 745.7 W.
4957donkeypower 250 W
4958chevalvapeur metrichorsepower
4959
4960#
4961# Heat Transfer
4962#
4963# Thermal conductivity, K, measures the rate of heat transfer across
4964# a material. The heat transferred is
4965# Q = K dT A t / L
4966# where dT is the temperature difference across the material, A is the
4967# cross sectional area, t is the time, and L is the length (thickness).
4968# Thermal conductivity is a material property.
4969
4970THERMAL_CONDUCTIVITY POWER / AREA (TEMPERATURE_DIFFERENCE/LENGTH)
4971THERMAL_RESISTIVITY 1/THERMAL_CONDUCTIVITY
4972
4973# Thermal conductance is the rate at which heat flows across a given
4974# object, so the area and thickness have been fixed. It depends on
4975# the size of the object and is hence not a material property.
4976
4977THERMAL_CONDUCTANCE POWER / TEMPERATURE_DIFFERENCE
4978THERMAL_RESISTANCE 1/THERMAL_CONDUCTANCE
4979
4980# Thermal admittance is the rate of heat flow per area across an
4981# object whose thickness has been fixed. Its reciprocal, thermal
4982# insulation, is used to for measuring the heat transfer per area
4983# of sheets of insulation or cloth that are of specified thickness.
4984
4985THERMAL_ADMITTANCE THERMAL_CONDUCTIVITY / LENGTH
4986THERMAL_INSULANCE THERMAL_RESISTIVITY LENGTH
4987THERMAL_INSULATION THERMAL_RESISTIVITY LENGTH
4988
4989Rvalue degF ft^2 hr / btu
4990Uvalue 1/Rvalue
4991europeanUvalue watt / m^2 K
4992RSI degC m^2 / W
4993clo 0.155 degC m^2 / W # Supposed to be the insulance
4994 # required to keep a resting person
4995 # comfortable indoors. The value
4996 # given is from NIST and the CRC,
4997 # but [5] gives a slightly different
4998 # value of 0.875 ft^2 degF hr / btu.
4999tog 0.1 degC m^2 / W # Also used for clothing.
5000
5001
5002# Thermal Conductivity of a few materials
5003
5004diamond_natural_thermal_conductivity 2200 W / m K
5005diamond_synthetic_thermal_conductivity 3320 W / m K # 99% pure C12
5006silver_thermal_conductivity 406 W / m K
5007aluminum_thermal_conductivity 205 W / m K
5008copper_thermal_conductivity 385 W / m K
5009gold_thermal_conductivity 314 W / m K
5010iron_thermal_conductivity 79.5 W / m K
5011stainless_304_thermal_conductivity 15.5 W / m K # average value
5012
5013# The bel was defined by engineers of Bell Laboratories to describe the
5014# reduction in audio level over a length of one mile. It was originally
5015# called the transmission unit (TU) but was renamed around 1923 to honor
5016# Alexander Graham Bell. The bel proved inconveniently large so the decibel
5017# has become more common. The decibel is dimensionless since it reports a
5018# ratio, but it is used in various contexts to report a signal's power
5019# relative to some reference level.
5020
5021bel(x) units=[1;1] range=(0,) 10^(x); log(bel) # Basic bel definition
5022decibel(x) units=[1;1] range=(0,) 10^(x/10); 10 log(decibel) # Basic decibel
5023dB() decibel # Abbreviation
5024dBW(x) units=[1;W] range=(0,) dB(x) W ; ~dB(dBW/W) # Reference = 1 W
5025dBk(x) units=[1;W] range=(0,) dB(x) kW ; ~dB(dBk/kW) # Reference = 1 kW
5026dBf(x) units=[1;W] range=(0,) dB(x) fW ; ~dB(dBf/fW) # Reference = 1 fW
5027dBm(x) units=[1;W] range=(0,) dB(x) mW ; ~dB(dBm/mW) # Reference = 1 mW
5028dBmW(x) units=[1;W] range=(0,) dBm(x) ; ~dBm(dBmW) # Reference = 1 mW
5029dBJ(x) units=[1;J] range=(0,) dB(x) J; ~dB(dBJ/J) # Energy relative
5030 # to 1 joule. Used for power spectral
5031 # density since W/Hz = J
5032
5033
5034# When used to measure amplitude, voltage, or current the signal is squared
5035# because power is proportional to the square of these measures. The root
5036# mean square (RMS) voltage is typically used with these units.
5037
5038dB_amplitude(x) units=[1;1] dB(0.5 x) ; ~dB(dB_amplitude^2)
5039dBV(x) units=[1;V] range=(0,) dB(0.5 x) V;~dB(dBV^2 / V^2) # Reference = 1 V
5040dBmV(x) units=[1;V] range=(0,) dB(0.5 x) mV;~dB(dBmV^2/mV^2)# Reference = 1 mV
5041dBuV(x) units=[1;V] range=(0,) dB(0.5 x) microV ; ~dB(dBuV^2 / microV^2)
5042 # Reference = 1 microvolt
5043
5044# Here are dB measurements for current. Be aware that dbA is also
5045# a unit for frequency weighted sound pressure.
5046dBA(x) units=[1;A] range=(0,) dB(0.5 x) A;~dB(dBA^2 / A^2) # Reference = 1 A
5047dBmA(x) units=[1;A] range=(0,) dB(0.5 x) mA;~dB(dBmA^2/mA^2)# Reference = 1 mA
5048dBuA(x) units=[1;A] range=(0,) dB(0.5 x) microA ; ~dB(dBuA^2 / microA^2)
5049 # Reference = 1 microamp
5050
5051# Referenced to the voltage that causes 1 mW dissipation in a 600 ohm load.
5052# Originally defined as dBv but changed to prevent confusion with dBV.
5053# The "u" is for unloaded.
5054dBu(x) units=[1;V] range=(0,) dB(0.5 x) sqrt(mW 600 ohm) ; \
5055 ~dB(dBu^2 / mW 600 ohm)
5056dBv(x) units=[1;V] range=(0,) dBu(x) ; ~dBu(dBv) # Synonym for dBu
5057
5058# Measurements for sound in air, referenced to the threshold of human hearing
5059# Note that sound in other media typically uses 1 micropascal as a reference
5060# for sound pressure. Units dBA, dBB, dBC, refer to different frequency
5061# weightings meant to approximate the human ear's response.
5062
5063# sound pressure level
5064dBSPL(x) units=[1;Pa] range=(0,) dB(0.5 x) 20 microPa ; \
5065 ~dB(dBSPL^2 / (20 microPa)^2)
5066# sound intensity level
5067dBSIL(x) units=[1;W/m^2] range=(0,) dB(x) 1e-12 W/m^2; \
5068 ~dB(dBSIL / (1e-12 W/m^2))
5069# sound power level (The W in SWL is for the reference power, 1 W.)
5070dBSWL(x) units=[1;W] range=(0,) dB(x) 1e-12 W; ~dB(dBSWL/1e-12 W)
5071
5072# The neper is another similar logarithmic unit. Note that the neper
5073# is defined based on the ratio of amplitudes rather than the power
5074# ratio like the decibel. This means that if the data is power, and
5075# you convert to nepers you should take the square root of the data
5076# to convert to amplitude. If you want to convert nepers to a power
5077# measurement you need to square the resulting output.
5078
5079neper(x) units=[1;1] range=(0,) exp(x); ln(neper)
5080centineper(x) units=[1;1] range=(0,) exp(x/100); 100 ln(centineper)
5081Np() neper
5082cNp() centineper
5083Np_power(x) units=[1;1] Np(2 x) ; ~Np(Np_power)/2
5084
5085# Misc other measures
5086
5087ENTROPY ENERGY / TEMPERATURE
5088clausius 1e3 cal/K # A unit of physical entropy
5089langley thermcalorie/cm^2 # Used in radiation theory
5090poncelet 100 kg force m / s
5091tonrefrigeration uston 144 btu / lb day # One ton refrigeration is
5092 # the rate of heat extraction required
5093 # turn one ton of water to ice in
5094 # a day. Ice is defined to have a
5095 # latent heat of 144 btu/lb.
5096tonref tonrefrigeration
5097refrigeration tonref / ton
5098frigorie 1000 cal_15 # Used in refrigeration engineering.
5099airwatt 8.5 (ft^3/min) inH2O # Measure of vacuum power as
5100 # pressure times air flow.
5101
5102# The unit "tnt" is defined so that you can write "tons tnt". The
5103# question of which ton, exactly, is intended. The answer is that
5104# nobody knows:
5105#
5106# Quoting the footnote from page 13 of
5107# The Effects of Nuclear Weapons, 3rd ed.
5108# https://www.fourmilab.ch/etexts/www/effects/eonw_1.pdf
5109#
5110# The majority of the experimental and theoretical values of the
5111# explosive energy released by TNT range from 900 to 1,100 calories per
5112# gram. At one time, there was some uncertainty as to whether the term
5113# "kiloton" of TNT referred to a short kiloton (2*10^6 pounds), a metric
5114# kiloton (2.205*10^6 pounds), or a long kiloton (2.24*10^6 pounds). In
5115# order to avoid ambiguity, it was agreed that the term "kiloton" would
5116# refer to the release of 10^12 calories of explosive energy. This is
5117# equivalent to 1 short kiloton of TNT if the energy release is 1,102
5118# calories per gram or to 1 long kiloton if the energy is 984 calories
5119# per gram of TNT.
5120#
5121# It is therefore not well-defined how much energy a "gram of tnt" is,
5122# though this term does appear in some references.
5123
5124tnt 1e9 cal_th / ton # Defined exact value
5125
5126# Nuclear weapon yields
5127
5128davycrocket 10 ton tnt # lightest US tactical nuclear weapon
5129hiroshima 15.5 kiloton tnt # Uranium-235 fission bomb
5130nagasaki 21 kiloton tnt # Plutonium-239 fission bomb
5131fatman nagasaki
5132littleboy hiroshima
5133ivyking 500 kiloton tnt # most powerful fission bomb
5134castlebravo 15 megaton tnt # most powerful US test
5135tsarbomba 50 megaton tnt # most powerful test ever: USSR,
5136 # 30 October 1961
5137b53bomb 9 megaton tnt
5138 # http://rarehistoricalphotos.com/gadget-first-atomic-bomb/
5139trinity 18 kiloton tnt # July 16, 1945
5140gadget trinity
5141
5142#
5143# Permeability: The permeability or permeance, n, of a substance determines
5144# how fast vapor flows through the substance. The formula W = n A dP
5145# holds where W is the rate of flow (in mass/time), n is the permeability,
5146# A is the area of the flow path, and dP is the vapor pressure difference.
5147#
5148
5149perm_0C grain / hr ft^2 inHg
5150perm_zero perm_0C
5151perm_0 perm_0C
5152perm perm_0C
5153perm_23C grain / hr ft^2 in Hg23C
5154perm_twentythree perm_23C
5155
5156#
5157# Counting measures
5158#
5159
5160pair 2
5161brace 2
5162nest 3 # often used for items like bowls that
5163 # nest together
5164hattrick 3 # Used in sports, especially cricket and ice
5165 # hockey to report the number of goals.
5166dicker 10
5167dozen 12
5168bakersdozen 13
5169score 20
5170flock 40
5171timer 40
5172shock 60
5173toncount 100 # Used in sports in the UK
5174longhundred 120 # From a germanic counting system
5175gross 144
5176greatgross 12 gross
5177tithe 1|10 # From Anglo-Saxon word for tenth
5178
5179# Paper counting measure
5180
5181shortquire 24
5182quire 25
5183shortream 480
5184ream 500
5185perfectream 516
5186bundle 2 reams
5187bale 5 bundles
5188
5189#
5190# Paper measures
5191#
5192
5193# USA paper sizes
5194
5195lettersize 8.5 inch 11 inch
5196legalsize 8.5 inch 14 inch
5197ledgersize 11 inch 17 inch
5198executivesize 7.25 inch 10.5 inch
5199Apaper 8.5 inch 11 inch
5200Bpaper 11 inch 17 inch
5201Cpaper 17 inch 22 inch
5202Dpaper 22 inch 34 inch
5203Epaper 34 inch 44 inch
5204
5205# Correspondence envelope sizes. #10 is the standard business
5206# envelope in the USA.
5207
5208envelope6_25size 3.5 inch 6 inch
5209envelope6_75size 3.625 inch 6.5 inch
5210envelope7size 3.75 inch 6.75 inch
5211envelope7_75size 3.875 inch 7.5 inch
5212envelope8_625size 3.625 inch 8.625 inch
5213envelope9size 3.875 inch 8.875 inch
5214envelope10size 4.125 inch 9.5 inch
5215envelope11size 4.5 inch 10.375 inch
5216envelope12size 4.75 inch 11 inch
5217envelope14size 5 inch 11.5 inch
5218envelope16size 6 inch 12 inch
5219
5220# Announcement envelope sizes (no relation to metric paper sizes like A4)
5221
5222envelopeA1size 3.625 inch 5.125 inch # same as 4bar
5223envelopeA2size 4.375 inch 5.75 inch
5224envelopeA6size 4.75 inch 6.5 inch
5225envelopeA7size 5.25 inch 7.25 inch
5226envelopeA8size 5.5 inch 8.125 inch
5227envelopeA9size 5.75 inch 8.75 inch
5228envelopeA10size 6 inch 9.5 inch
5229
5230# Baronial envelopes
5231
5232envelope4bar 3.625 inch 5.125 inch # same as A1
5233envelope5_5bar 4.375 inch 5.75 inch
5234envelope6bar 4.75 inch 6.5 inch
5235
5236# Coin envelopes
5237
5238envelope1baby 2.25 inch 3.5 inch # same as #1 coin
5239envelope00coin 1.6875 inch 2.75 inch
5240envelope1coin 2.25 inch 3.5 inch
5241envelope3coin 2.5 inch 4.25 inch
5242envelope4coin 3 inch 4.5 inch
5243envelope4_5coin 3 inch 4.875 inch
5244envelope5coin 2.875 inch 5.25 inch
5245envelope5_5coin 3.125 inch 5.5 inch
5246envelope6coin 3.375 inch 6 inch
5247envelope7coin 3.5 inch 6.5 inch
5248
5249# The metric paper sizes are defined so that if a sheet is cut in half
5250# along the short direction, the result is two sheets which are
5251# similar to the original sheet. This means that for any metric size,
5252# the long side is close to sqrt(2) times the length of the short
5253# side. Each series of sizes is generated by repeated cuts in half,
5254# with the values rounded down to the nearest millimeter.
5255
5256A0paper 841 mm 1189 mm # The basic size in the A series
5257A1paper 594 mm 841 mm # is defined to have an area of
5258A2paper 420 mm 594 mm # one square meter.
5259A3paper 297 mm 420 mm
5260A4paper 210 mm 297 mm
5261A5paper 148 mm 210 mm
5262A6paper 105 mm 148 mm
5263A7paper 74 mm 105 mm
5264A8paper 52 mm 74 mm
5265A9paper 37 mm 52 mm
5266A10paper 26 mm 37 mm
5267
5268B0paper 1000 mm 1414 mm # The basic B size has an area
5269B1paper 707 mm 1000 mm # of sqrt(2) square meters.
5270B2paper 500 mm 707 mm
5271B3paper 353 mm 500 mm
5272B4paper 250 mm 353 mm
5273B5paper 176 mm 250 mm
5274B6paper 125 mm 176 mm
5275B7paper 88 mm 125 mm
5276B8paper 62 mm 88 mm
5277B9paper 44 mm 62 mm
5278B10paper 31 mm 44 mm
5279
5280C0paper 917 mm 1297 mm # The basic C size has an area
5281C1paper 648 mm 917 mm # of sqrt(sqrt(2)) square meters.
5282C2paper 458 mm 648 mm
5283C3paper 324 mm 458 mm # Intended for envelope sizes
5284C4paper 229 mm 324 mm
5285C5paper 162 mm 229 mm
5286C6paper 114 mm 162 mm
5287C7paper 81 mm 114 mm
5288C8paper 57 mm 81 mm
5289C9paper 40 mm 57 mm
5290C10paper 28 mm 40 mm
5291
5292# gsm (Grams per Square Meter), a sane, metric paper weight measure
5293
5294gsm grams / meter^2
5295
5296# In the USA, a collection of crazy historical paper measures are used. Paper
5297# is measured as a weight of a ream of that particular type of paper. This is
5298# sometimes called the "substance" or "basis" (as in "substance 20" paper).
5299# The standard sheet size or "basis size" varies depending on the type of
5300# paper. As a result, 20 pound bond paper and 50 pound text paper are actually
5301# about the same weight. The different sheet sizes were historically the most
5302# convenient for printing or folding in the different applications. These
5303# different basis weights are standards maintained by American Society for
5304# Testing Materials (ASTM) and the American Forest and Paper Association
5305# (AF&PA).
5306
5307poundbookpaper lb / 25 inch 38 inch ream
5308lbbook poundbookpaper
5309poundtextpaper poundbookpaper
5310lbtext poundtextpaper
5311poundoffsetpaper poundbookpaper # For offset printing
5312lboffset poundoffsetpaper
5313poundbiblepaper poundbookpaper # Designed to be lightweight, thin,
5314lbbible poundbiblepaper # strong and opaque.
5315poundtagpaper lb / 24 inch 36 inch ream
5316lbtag poundtagpaper
5317poundbagpaper poundtagpaper
5318lbbag poundbagpaper
5319poundnewsprintpaper poundtagpaper
5320lbnewsprint poundnewsprintpaper
5321poundposterpaper poundtagpaper
5322lbposter poundposterpaper
5323poundtissuepaper poundtagpaper
5324lbtissue poundtissuepaper
5325poundwrappingpaper poundtagpaper
5326lbwrapping poundwrappingpaper
5327poundwaxingpaper poundtagpaper
5328lbwaxing poundwaxingpaper
5329poundglassinepaper poundtagpaper
5330lbglassine poundglassinepaper
5331poundcoverpaper lb / 20 inch 26 inch ream
5332lbcover poundcoverpaper
5333poundindexpaper lb / 25.5 inch 30.5 inch ream
5334lbindex poundindexpaper
5335poundindexbristolpaper poundindexpaper
5336lbindexbristol poundindexpaper
5337poundbondpaper lb / 17 inch 22 inch ream # Bond paper is stiff and
5338lbbond poundbondpaper # durable for repeated
5339poundwritingpaper poundbondpaper # filing, and it resists
5340lbwriting poundwritingpaper # ink penetration.
5341poundledgerpaper poundbondpaper
5342lbledger poundledgerpaper
5343poundcopypaper poundbondpaper
5344lbcopy poundcopypaper
5345poundblottingpaper lb / 19 inch 24 inch ream
5346lbblotting poundblottingpaper
5347poundblankspaper lb / 22 inch 28 inch ream
5348lbblanks poundblankspaper
5349poundpostcardpaper lb / 22.5 inch 28.5 inch ream
5350lbpostcard poundpostcardpaper
5351poundweddingbristol poundpostcardpaper
5352lbweddingbristol poundweddingbristol
5353poundbristolpaper poundweddingbristol
5354lbbristol poundbristolpaper
5355poundboxboard lb / 1000 ft^2
5356lbboxboard poundboxboard
5357poundpaperboard poundboxboard
5358lbpaperboard poundpaperboard
5359
5360# When paper is marked in units of M, it means the weight of 1000 sheets of the
5361# given size of paper. To convert this to paper weight, divide by the size of
5362# the paper in question.
5363
5364paperM lb / 1000
5365
5366# In addition paper weight is reported in "caliper" which is simply the
5367# thickness of one sheet, typically in inches. Thickness is also reported in
5368# "points" where a point is 1|1000 inch. These conversions are supplied to
5369# convert these units roughly (using an approximate density) into the standard
5370# paper weight values.
5371
5372pointthickness 0.001 in
5373paperdensity 0.8 g/cm^3 # approximate--paper densities vary!
5374papercaliper in paperdensity
5375paperpoint pointthickness paperdensity
5376
5377#
5378# Printing
5379#
5380
5381fournierpoint 0.1648 inch / 12 # First definition of the printers
5382 # point made by Pierre Fournier who
5383 # defined it in 1737 as 1|12 of a
5384 # cicero which was 0.1648 inches.
5385olddidotpoint 1|72 frenchinch # Francois Ambroise Didot, one of
5386 # a family of printers, changed
5387 # Fournier's definition around 1770
5388 # to fit to the French units then in
5389 # use.
5390bertholdpoint 1|2660 m # H. Berthold tried to create a
5391 # metric version of the didot point
5392 # in 1878.
5393INpoint 0.4 mm # This point was created by a
5394 # group directed by Fermin Didot in
5395 # 1881 and is associated with the
5396 # imprimerie nationale. It doesn't
5397 # seem to have been used much.
5398germandidotpoint 0.376065 mm # Exact definition appears in DIN
5399 # 16507, a German standards document
5400 # of 1954. Adopted more broadly in
5401 # 1966 by ???
5402metricpoint 3|8 mm # Proposed in 1977 by Eurograf
5403oldpoint 1|72.27 inch # The American point was invented
5404printerspoint oldpoint # by Nelson Hawks in 1879 and
5405texpoint oldpoint # dominates USA publishing.
5406 # It was standardized by the American
5407 # Typefounders Association at the
5408 # value of 0.013837 inches exactly.
5409 # Knuth uses the approximation given
5410 # here (which is very close). The
5411 # comp.fonts FAQ claims that this
5412 # value is supposed to be 1|12 of a
5413 # pica where 83 picas is equal to 35
5414 # cm. But this value differs from
5415 # the standard.
5416texscaledpoint 1|65536 texpoint # The TeX typesetting system uses
5417texsp texscaledpoint # this for all computations.
5418computerpoint 1|72 inch # The American point was rounded
5419point computerpoint
5420computerpica 12 computerpoint # to an even 1|72 inch by computer
5421postscriptpoint computerpoint # people at some point.
5422pspoint postscriptpoint
5423twip 1|20 point # TWentieth of an Imperial Point
5424Q 1|4 mm # Used in Japanese phototypesetting
5425 # Q is for quarter
5426frenchprinterspoint olddidotpoint
5427didotpoint germandidotpoint # This seems to be the dominant value
5428europeanpoint didotpoint # for the point used in Europe
5429cicero 12 didotpoint
5430
5431stick 2 inches
5432
5433# Type sizes
5434
5435excelsior 3 oldpoint
5436brilliant 3.5 oldpoint
5437diamondtype 4 oldpoint
5438pearl 5 oldpoint
5439agate 5.5 oldpoint # Originally agate type was 14 lines per
5440 # inch, giving a value of 1|14 in.
5441ruby agate # British
5442nonpareil 6 oldpoint
5443mignonette 6.5 oldpoint
5444emerald mignonette # British
5445minion 7 oldpoint
5446brevier 8 oldpoint
5447bourgeois 9 oldpoint
5448longprimer 10 oldpoint
5449smallpica 11 oldpoint
5450pica 12 oldpoint
5451english 14 oldpoint
5452columbian 16 oldpoint
5453greatprimer 18 oldpoint
5454paragon 20 oldpoint
5455meridian 44 oldpoint
5456canon 48 oldpoint
5457
5458# German type sizes
5459
5460nonplusultra 2 didotpoint
5461brillant 3 didotpoint
5462diamant 4 didotpoint
5463perl 5 didotpoint
5464nonpareille 6 didotpoint
5465kolonel 7 didotpoint
5466petit 8 didotpoint
5467borgis 9 didotpoint
5468korpus 10 didotpoint
5469corpus korpus
5470garamond korpus
5471mittel 14 didotpoint
5472tertia 16 didotpoint
5473text 18 didotpoint
5474kleine_kanon 32 didotpoint
5475kanon 36 didotpoint
5476grobe_kanon 42 didotpoint
5477missal 48 didotpoint
5478kleine_sabon 72 didotpoint
5479grobe_sabon 84 didotpoint
5480
5481#
5482# Information theory units. Note that the name "entropy" is used both
5483# to measure information and as a physical quantity.
5484#
5485
5486INFORMATION bit
5487
5488nat (1/ln(2)) bits # Entropy measured base e
5489hartley log2(10) bits # Entropy of a uniformly
5490ban hartley # distributed random variable
5491 # over 10 symbols.
5492dit hartley # from Decimal digIT
5493
5494#
5495# Computer
5496#
5497
5498bps bit/sec # Sometimes the term "baud" is
5499 # incorrectly used to refer to
5500 # bits per second. Baud refers
5501 # to symbols per second. Modern
5502 # modems transmit several bits
5503 # per symbol.
5504byte 8 bit # Not all machines had 8 bit
5505B byte # bytes, but these days most of
5506 # them do. But beware: for
5507 # transmission over modems, a
5508 # few extra bits are used so
5509 # there are actually 10 bits per
5510 # byte.
5511octet 8 bits # The octet is always 8 bits
5512nybble 4 bits # Half of a byte. Sometimes
5513 # equal to different lengths
5514 # such as 3 bits.
5515nibble nybble
5516nyp 2 bits # Donald Knuth asks in an exercise
5517 # for a name for a 2 bit
5518 # quantity and gives the "nyp"
5519 # as a solution due to Gregor
5520 # Purdy. Not in common use.
5521meg megabyte # Some people consider these
5522 # units along with the kilobyte
5523gig gigabyte # to be defined according to
5524 # powers of 2 with the kilobyte
5525 # equal to 2^10 bytes, the
5526 # megabyte equal to 2^20 bytes and
5527 # the gigabyte equal to 2^30 bytes
5528 # but these usages are forbidden
5529 # by SI. Binary prefixes have
5530 # been defined by IEC to replace
5531 # the SI prefixes. Use them to
5532 # get the binary units KiB, MiB,
5533 # GiB, etc.
5534jiffy 0.01 sec # This is defined in the Jargon File
5535jiffies jiffy # (http://www.jargon.org) as being the
5536 # duration of a clock tick for measuring
5537 # wall-clock time. Supposedly the value
5538 # used to be 1|60 sec or 1|50 sec
5539 # depending on the frequency of AC power,
5540 # but then 1|100 sec became more common.
5541 # On linux systems, this term is used and
5542 # for the Intel based chips, it does have
5543 # the value of .01 sec. The Jargon File
5544 # also lists two other definitions:
5545 # millisecond, and the time taken for
5546 # light to travel one foot.
5547cdaudiospeed 44.1 kHz 2*16 bits # CD audio data rate at 44.1 kHz with 2
5548 # samples of sixteen bits each.
5549cdromspeed 75 2048 bytes / sec # For data CDs (mode1) 75 sectors are read
5550 # each second with 2048 bytes per sector.
5551 # Audio CDs do not have sectors, but
5552 # people sometimes divide the bit rate by
5553 # 75 and claim a sector length of 2352.
5554 # Data CDs have a lower rate due to
5555 # increased error correction overhead.
5556 # There is a rarely used mode (mode2) with
5557 # 2336 bytes per sector that has fewer
5558 # error correction bits than mode1.
5559dvdspeed 1385 kB/s # This is the "1x" speed of a DVD using
5560 # constant linear velocity (CLV) mode.
5561 # Modern DVDs may vary the linear velocity
5562 # as they go from the inside to the
5563 # outside of the disc.
5564 # See http://www.osta.org/technology/dvdqa/dvdqa4.htm
5565
5566FIT / 1e9 hour # Failures In Time, number of failures per billion hours
5567
5568#
5569# The IP address space is divided into subnets. The number of hosts
5570# in a subnet depends on the length of the subnet prefix. This is
5571# often written as /N where N is the number of bits in the prefix.
5572#
5573# https://en.wikipedia.org/wiki/Subnetwork
5574#
5575# These definitions gives the number of hosts for a subnet whose
5576# prefix has the specified length in bits.
5577#
5578
5579ipv4subnetsize(prefix_len) units=[1;1] domain=[0,32] range=[1,4294967296] \
5580 2^(32-prefix_len) ; 32-log2(ipv4subnetsize)
5581ipv4classA ipv4subnetsize(8)
5582ipv4classB ipv4subnetsize(16)
5583ipv4classC ipv4subnetsize(24)
5584
5585ipv6subnetsize(prefix_len) units=[1;1] domain=[0,128] \
5586 range=[1,340282366920938463463374607431768211456] \
5587 2^(128-prefix_len) ; 128-log2(ipv6subnetsize)
5588
5589#
5590# Musical measures. Musical intervals expressed as ratios. Multiply
5591# two intervals together to get the sum of the interval. The function
5592# musicalcent can be used to convert ratios to cents.
5593#
5594
5595# Perfect intervals
5596
5597octave 2
5598majorsecond musicalfifth^2 / octave
5599majorthird 5|4
5600minorthird 6|5
5601musicalfourth 4|3
5602musicalfifth 3|2
5603majorsixth musicalfourth majorthird
5604minorsixth musicalfourth minorthird
5605majorseventh musicalfifth majorthird
5606minorseventh musicalfifth minorthird
5607
5608pythagoreanthird majorsecond musicalfifth^2 / octave
5609syntoniccomma pythagoreanthird / majorthird
5610pythagoreancomma musicalfifth^12 / octave^7
5611
5612# Equal tempered definitions
5613
5614semitone octave^(1|12)
5615musicalcent(x) units=[1;1] range=(0,) semitone^(x/100) ; \
5616 100 log(musicalcent)/log(semitone)
5617
5618#
5619# Musical note lengths.
5620#
5621
5622wholenote !
5623MUSICAL_NOTE_LENGTH wholenote
5624halfnote 1|2 wholenote
5625quarternote 1|4 wholenote
5626eighthnote 1|8 wholenote
5627sixteenthnote 1|16 wholenote
5628thirtysecondnote 1|32 wholenote
5629sixtyfourthnote 1|64 wholenote
5630dotted 3|2
5631doubledotted 7|4
5632breve doublewholenote
5633semibreve wholenote
5634minimnote halfnote
5635crotchet quarternote
5636quaver eighthnote
5637semiquaver sixteenthnote
5638demisemiquaver thirtysecondnote
5639hemidemisemiquaver sixtyfourthnote
5640semidemisemiquaver hemidemisemiquaver
5641
5642#
5643# yarn and cloth measures
5644#
5645
5646# yarn linear density
5647
5648woolyarnrun 1600 yard/pound # 1600 yds of "number 1 yarn" weighs
5649 # a pound.
5650yarncut 300 yard/pound # Less common system used in
5651 # Pennsylvania for wool yarn
5652cottonyarncount 840 yard/pound
5653linenyarncount 300 yard/pound # Also used for hemp and ramie
5654worstedyarncount 1680 ft/pound
5655metricyarncount meter/gram
5656denier 1|9 tex # used for silk and rayon
5657manchesteryarnnumber drams/1000 yards # old system used for silk
5658pli lb/in
5659typp 1000 yd/lb # abbreviation for Thousand Yard Per Pound
5660asbestoscut 100 yd/lb # used for glass and asbestos yarn
5661
5662tex gram / km # rational metric yarn measure, meant
5663drex 0.1 tex # to be used for any kind of yarn
5664poumar lb / 1e6 yard
5665
5666# yarn and cloth length
5667
5668skeincotton 80*54 inch # 80 turns of thread on a reel with a
5669 # 54 in circumference (varies for other
5670 # kinds of thread)
5671cottonbolt 120 ft # cloth measurement
5672woolbolt 210 ft
5673bolt cottonbolt
5674heer 600 yards
5675cut 300 yards # used for wet-spun linen yarn
5676lea 300 yards
5677
5678sailmakersyard 28.5 in
5679sailmakersounce oz / sailmakersyard 36 inch
5680
5681silkmomme momme / 25 yards 1.49 inch # Traditional silk weight
5682silkmm silkmomme # But it is also defined as
5683 # lb/100 yd 45 inch. The two
5684 # definitions are slightly different
5685 # and neither one seems likely to be
5686 # the true source definition.
5687
5688#
5689# drug dosage
5690#
5691
5692mcg microgram # Frequently used for vitamins
5693iudiptheria 62.8 microgram # IU is for international unit
5694iupenicillin 0.6 microgram
5695iuinsulin 41.67 microgram
5696drop 1|20 ml # The drop was an old "unit" that was
5697 # replaced by the minim. But I was
5698 # told by a pharmacist that in his
5699 # profession, the conversion of 20
5700 # drops per ml is actually used.
5701bloodunit 450 ml # For whole blood. For blood
5702 # components, a blood unit is the
5703 # quantity of the component found in a
5704 # blood unit of whole blood. The
5705 # human body contains about 12 blood
5706 # units of whole blood.
5707
5708#
5709# misc medical measure
5710#
5711
5712frenchcathetersize 1|3 mm # measure used for the outer diameter
5713 # of a catheter
5714charriere frenchcathetersize
5715
5716
5717#
5718# fixup units for times when prefix handling doesn't do the job
5719#
5720
5721hectare hectoare
5722megohm megaohm
5723kilohm kiloohm
5724microhm microohm
5725megalerg megaerg # 'L' added to make it pronounceable [18].
5726
5727#
5728# Money
5729#
5730# Note that US$ is the primitive unit so other currencies are
5731# generally given in US$.
5732#
5733
5734unitedstatesdollar US$
5735usdollar US$
5736$ dollar
5737mark germanymark
5738#bolivar venezuelabolivar # Not all databases are
5739#venezuelabolivarfuerte 1e-5 bolivar # supplying these
5740#bolivarfuerte 1e-5 bolivar # The currency was revalued
5741#oldbolivar 1|1000 bolivarfuerte # twice
5742peseta spainpeseta
5743rand southafricarand
5744escudo portugalescudo
5745guilder netherlandsguilder
5746hollandguilder netherlandsguilder
5747peso mexicopeso
5748yen japanyen
5749lira turkeylira
5750rupee indiarupee
5751drachma greecedrachma
5752franc francefranc
5753markka finlandmarkka
5754britainpound unitedkingdompound
5755greatbritainpound unitedkingdompound
5756unitedkingdompound ukpound
5757poundsterling britainpound
5758yuan chinayuan
5759
5760# Unicode Currency Names
5761
5762!utf8
5763icelandkróna icelandkrona
5764polandzłoty polandzloty
5765tongapa’anga tongapa'anga
5766#venezuelabolívar venezuelabolivar
5767vietnamđồng vietnamdong
5768mongoliatögrög mongoliatugrik
5769sãotomé&príncipedobra saotome&principedobra
5770!endutf8
5771
5772UKP GBP # Not an ISO code, but looks like one, and
5773 # sometimes used on usenet.
5774
5775!include currency.units
5776
5777# Money on the gold standard, used in the late 19th century and early
5778# 20th century.
5779
5780olddollargold 23.22 grains goldprice # Used until 1934
5781newdollargold 96|7 grains goldprice # After Jan 31, 1934
5782dollargold newdollargold
5783poundgold 113 grains goldprice # British pound
5784
5785# Precious metals
5786
5787goldounce goldprice troyounce
5788silverounce silverprice troyounce
5789platinumounce platinumprice troyounce
5790XAU goldounce
5791XPT platinumounce
5792XAG silverounce
5793
5794# Nominal masses of US coins. Note that dimes, quarters and half dollars
5795# have weight proportional to value. Before 1965 it was $40 / kg.
5796
5797USpennyweight 2.5 grams # Since 1982, 48 grains before
5798USnickelweight 5 grams
5799USdimeweight US$ 0.10 / (20 US$ / lb) # Since 1965
5800USquarterweight US$ 0.25 / (20 US$ / lb) # Since 1965
5801UShalfdollarweight US$ 0.50 / (20 US$ / lb) # Since 1971
5802USdollarweight 8.1 grams # Weight of Susan B. Anthony and
5803 # Sacagawea dollar coins
5804
5805# British currency
5806
5807quid britainpound # Slang names
5808fiver 5 quid
5809tenner 10 quid
5810monkey 500 quid
5811brgrand 1000 quid
5812bob shilling
5813
5814shilling 1|20 britainpound # Before decimalisation, there
5815oldpence 1|12 shilling # were 20 shillings to a pound,
5816farthing 1|4 oldpence # each of twelve old pence
5817guinea 21 shilling # Still used in horse racing
5818crown 5 shilling
5819florin 2 shilling
5820groat 4 oldpence
5821tanner 6 oldpence
5822brpenny 0.01 britainpound
5823pence brpenny
5824tuppence 2 pence
5825tuppenny tuppence
5826ha'penny halfbrpenny
5827hapenny ha'penny
5828oldpenny oldpence
5829oldtuppence 2 oldpence
5830oldtuppenny oldtuppence
5831threepence 3 oldpence # threepence never refers to new money
5832threepenny threepence
5833oldthreepence threepence
5834oldthreepenny threepence
5835oldhalfpenny halfoldpenny
5836oldha'penny oldhalfpenny
5837oldhapenny oldha'penny
5838brpony 25 britainpound
5839
5840# Canadian currency
5841
5842loony 1 canadadollar # This coin depicts a loon
5843toony 2 canadadollar
5844
5845# Cryptocurrency
5846
5847satoshi 1e-8 bitcoin
5848XBT bitcoin # nonstandard code
5849
5850# Inflation.
5851#
5852# Currently US inflation as reported by the BLS CPI index is available.
5853# The UScpi() table reports the USA consumer price index. Note that
5854# if you specify a year like 2015, that refers to the CPI reported
5855# for December of 2014 (which is released in mid January 2015),
5856# so it refers to the point right at the start of the given year.
5857# Months are increments of 1|12 on the year, so the January 2015
5858# release will be 2015+1|12 = 2015.08333.
5859
5860!include cpi.units
5861
5862USCPI() UScpi
5863USCPI_now UScpi_now
5864USCPI_lastdate UScpi_lastdate
5865cpi() UScpi
5866CPI() UScpi
5867cpi_now UScpi_now
5868CPI_now UScpi_now
5869cpi_lastdate UScpi_lastdate
5870CPI_lastdate UScpi_lastdate
5871
5872# These definitions hide the CPI index and directly convert US dollars
5873# from a specified date to current dollars. You can use this to convert
5874# historical dollars to present value or to convert money in the past
5875# between two dates.
5876
5877dollars_in() USdollars_in
5878US$in() USdollars_in
5879$in() USdollars_in
5880
5881# This definition gives the dimensionless US inflation factor since the
5882# specified date.
5883
5884inflation_since() USinflation_since
5885
5886
5887#
5888# Units used for measuring volume of wood
5889#
5890
5891cord 4*4*8 ft^3 # 4 ft by 4 ft by 8 ft bundle of wood
5892facecord 1|2 cord
5893cordfoot 1|8 cord # One foot long section of a cord
5894cordfeet cordfoot
5895housecord 1|3 cord # Used to sell firewood for residences,
5896 # often confusingly called a "cord"
5897boardfoot ft^2 inch # Usually 1 inch thick wood
5898boardfeet boardfoot
5899fbm boardfoot # feet board measure
5900stack 4 yard^3 # British, used for firewood and coal [18]
5901rick 4 ft 8 ft 16 inches # Stack of firewood, supposedly
5902 # sometimes called a face cord, but this
5903 # value is equal to 1|3 cord. Name
5904 # comes from an old Norse word for a
5905 # stack of wood.
5906stere m^3
5907timberfoot ft^3 # Used for measuring solid blocks of wood
5908standard 120 12 ft 11 in 1.5 in # This is the St Petersburg or
5909 # Pittsburg standard. Apparently the
5910 # term is short for "standard hundred"
5911 # which was meant to refer to 100 pieces
5912 # of wood (deals). However, this
5913 # particular standard is equal to 120
5914 # deals which are 12 ft by 11 in by 1.5
5915 # inches (not the standard deal).
5916hoppusfoot (4/pi) ft^3 # Volume calculation suggested in 1736
5917hoppusboardfoot 1|12 hoppusfoot # forestry manual by Edward Hoppus, for
5918hoppuston 50 hoppusfoot # estimating the usable volume of a log.
5919 # It results from computing the volume
5920 # of a cylindrical log of length, L, and
5921 # girth (circumference), G, by V=L(G/4)^2.
5922 # The hoppus ton is apparently still in
5923 # use for shipments from Southeast Asia.
5924
5925# In Britain, the deal is apparently any piece of wood over 6 feet long, over
5926# 7 wide and 2.5 inches thick. The OED doesn't give a standard size. A piece
5927# of wood less than 7 inches wide is called a "batten". This unit is now used
5928# exclusively for fir and pine.
5929
5930deal 12 ft 11 in 2.5 in # The standard North American deal [OED]
5931wholedeal 12 ft 11 in 1.25 in # If it's half as thick as the standard
5932 # deal it's called a "whole deal"!
5933splitdeal 12 ft 11 in 5|8 in # And half again as thick is a split deal.
5934
5935
5936# Used for shellac mixing rate
5937
5938poundcut pound / gallon
5939lbcut poundcut
5940
5941#
5942# Gas and Liquid flow units
5943#
5944
5945FLUID_FLOW VOLUME / TIME
5946
5947# Some obvious volumetric gas flow units (cu is short for cubic)
5948
5949cumec m^3/s
5950cusec ft^3/s
5951
5952# Conventional abbreviations for fluid flow units
5953
5954gph gal/hr
5955gpm gal/min
5956mgd megagal/day
5957brgph brgallon/hr
5958brgpm brgallon/min
5959brmgd mega brgallon/day
5960usgph usgallon/hr
5961usgpm usgallon/min
5962usmgd mega usgallon/day
5963cfs ft^3/s
5964cfh ft^3/hour
5965cfm ft^3/min
5966lpm liter/min
5967lfm ft/min # Used to report air flow produced by fans.
5968 # Multiply by cross sectional area to get a
5969 # flow in cfm.
5970
5971pru mmHg / (ml/min) # peripheral resistance unit, used in
5972 # medicine to assess blood flow in
5973 # the capillaries.
5974
5975# Miner's inch: This is an old historic unit used in the Western United
5976# States. It is generally defined as the rate of flow through a one square
5977# inch hole at a specified depth such as 4 inches. In the late 19th century,
5978# volume of water was sometimes measured in the "24 hour inch". Values for the
5979# miner's inch were fixed by state statues. (This information is from a web
5980# site operated by the Nevada Division of Water Planning: The Water Words
5981# Dictionary at http://water.nv.gov/WaterPlanDictionary.aspx, specifically
5982# http://water.nv.gov/programs/planning/dictionary/wwords-M.pdf. All
5983# but minersinchNV are s.v. Miner's Inch [Western United States])
5984
5985minersinchAZ 1.5 ft^3/min
5986minersinchCA 1.5 ft^3/min
5987minersinchMT 1.5 ft^3/min
5988minersinchNV 1.5 ft^3/min
5989minersinchOR 1.5 ft^3/min
5990minersinchID 1.2 ft^3/min
5991minersinchKS 1.2 ft^3/min
5992minersinchNE 1.2 ft^3/min
5993minersinchNM 1.2 ft^3/min
5994minersinchND 1.2 ft^3/min
5995minersinchSD 1.2 ft^3/min
5996minersinchUT 1.2 ft^3/min
5997minersinchCO 1 ft^3/sec / 38.4 # 38.4 miner's inches = 1 ft^3/sec
5998minersinchBC 1.68 ft^3/min # British Columbia
5999
6000# Oceanographic flow
6001
6002sverdrup 1e6 m^3 / sec # Used to express flow of ocean
6003 # currents. Named after Norwegian
6004 # oceanographer H. Sverdrup.
6005
6006# In vacuum science and some other applications, gas flow is measured
6007# as the product of volumetric flow and pressure. This is useful
6008# because it makes it easy to compare with the flow at standard
6009# pressure (one atmosphere). It also directly relates to the number
6010# of gas molecules per unit time, and hence to the mass flow if the
6011# molecular mass is known.
6012
6013GAS_FLOW PRESSURE FLUID_FLOW
6014
6015sccm atm cc/min # 's' is for "standard" to indicate
6016sccs atm cc/sec # flow at standard pressure
6017scfh atm ft^3/hour #
6018scfm atm ft^3/min
6019slpm atm liter/min
6020slph atm liter/hour
6021lusec liter micron Hg / s # Used in vacuum science
6022
6023# US Standard Atmosphere (1976)
6024# Atmospheric temperature and pressure vs. geometric height above sea level
6025# This definition covers only the troposphere (the lowest atmospheric
6026# layer, up to 11 km), and assumes the layer is polytropic.
6027# A polytropic process is one for which PV^k = const, where P is the
6028# pressure, V is the volume, and k is the polytropic exponent. The
6029# polytropic index is n = 1 / (k - 1). As noted in the Wikipedia article
6030# https://en.wikipedia.org/wiki/Polytropic_process, some authors reverse
6031# the definitions of "exponent" and "index." The functions below assume
6032# the following parameters:
6033
6034# temperature lapse rate, -dT/dz, in troposphere
6035
6036lapserate 6.5 K/km # US Std Atm (1976)
6037
6038# air molecular weight, including constituent mol wt, given
6039# in Table 3, p. 3; CH4 (16.04303) and N2O (44.0128) from
6040# Table 15, p. 33. Values for molecular weights are slightly
6041# different from current values, so the original numerical
6042# values are retained.
6043
6044air_1976 78.084 % 28.0134 \
6045 + 20.9476 % 31.9988 \
6046 + 9340 ppm 39.948 \
6047 + 314 ppm 44.00995 \
6048 + 18.18 ppm 20.183 \
6049 + 5.24 ppm 4.0026 \
6050 + 1.5 ppm 16.04303 \
6051 + 1.14 ppm 83.80 \
6052 + 0.5 ppm 2.01594 \
6053 + 0.27 ppm 44.0128 \
6054 + 0.087 ppm 131.30
6055
6056# from US Standard Atmosphere, 1962, Table I.2.7, p. 9
6057
6058air_1962 78.084 % 28.0134 \
6059 + 20.9476 % 31.9988 \
6060 + 9340 ppm 39.948 \
6061 + 314 ppm 44.00995 \
6062 + 18.18 ppm 20.183 \
6063 + 5.24 ppm 4.0026 \
6064 + 2 ppm 16.04303 \
6065 + 1.14 ppm 83.80 \
6066 + 0.5 ppm 2.01594 \
6067 + 0.5 ppm 44.0128 \
6068 + 0.087 ppm 131.30
6069
6070# Average molecular weight of air
6071#
6072# Concentration of greenhouse gases CO2, CH4, and N20 are from
6073# https://gml.noaa.gov/ccgg/trends/global.html (accessed 2023-04-10);
6074# others are from NASA Earth Fact Sheet
6075# https://nssdc.gsfc.nasa.gov/planetary/factsheet/earthfact.html (accessed 2023-04-10)
6076# Numbers do not add up to exactly 100% due to roundoff and uncertainty. Water
6077# is highly variable, typically makes up about 1%
6078
6079air_2023 78.08% nitrogen 2 \
6080 + 20.95% oxygen 2 \
6081 + 9340 ppm argon \
6082 + 419 ppm (carbon + oxygen 2) \
6083 + 18.18 ppm neon \
6084 + 5.24 ppm helium \
6085 + 1.92 ppm (carbon + 4 hydrogen) \
6086 + 1.14 ppm krypton \
6087 + 0.55 ppm hydrogen 2 \
6088 + 0.34 ppm (nitrogen 2 + oxygen)
6089
6090# from NASA Earth Fact Sheet (accessed 28 August 2015)
6091# http://nssdc.gsfc.nasa.gov/planetary/factsheet/earthfact.html
6092
6093air_2015 78.08% nitrogen 2 \
6094 + 20.95% oxygen 2 \
6095 + 9340 ppm argon \
6096 + 400 ppm (carbon + oxygen 2) \
6097 + 18.18 ppm neon \
6098 + 5.24 ppm helium \
6099 + 1.7 ppm (carbon + 4 hydrogen) \
6100 + 1.14 ppm krypton \
6101 + 0.55 ppm hydrogen 2
6102
6103air air_2023
6104
6105# universal gas constant
6106R_1976 8.31432e3 N m/(kmol K)
6107
6108# polytropic index n
6109polyndx_1976 air_1976 (kg/kmol) gravity/(R_1976 lapserate) - 1
6110
6111# If desired, redefine using current values for air mol wt and R
6112
6113polyndx polyndx_1976
6114# polyndx air (kg/kmol) gravity/(R lapserate) - 1
6115
6116# for comparison with various references
6117
6118polyexpnt (polyndx + 1) / polyndx
6119
6120# The model assumes the following reference values:
6121# sea-level temperature and pressure
6122
6123stdatmT0 288.15 K
6124stdatmP0 atm
6125
6126# "effective radius" for relation of geometric to geopotential height,
6127# at a latitude at which g = 9.80665 m/s (approximately 45.543 deg); no
6128# relation to actual radius
6129
6130earthradUSAtm 6356766 m
6131
6132# Temperature vs. geopotential height h
6133# Assumes 15 degC at sea level
6134# Based on approx 45 deg latitude
6135# Lower limits of domain and upper limits of range are those of the
6136# tables in US Standard Atmosphere (NASA 1976)
6137
6138stdatmTH(h) units=[m;K] domain=[-5000,11e3] range=[217,321] \
6139 stdatmT0+(-lapserate h) ; (stdatmT0+(-stdatmTH))/lapserate
6140
6141# Temperature vs. geometric height z; based on approx 45 deg latitude
6142stdatmT(z) units=[m;K] domain=[-5000,11e3] range=[217,321] \
6143 stdatmTH(geop_ht(z)) ; ~geop_ht(~stdatmTH(stdatmT))
6144
6145# Pressure vs. geopotential height h
6146# Assumes 15 degC and 101325 Pa at sea level
6147# Based on approx 45 deg latitude
6148# Lower limits of domain and upper limits of range are those of the
6149# tables in US Standard Atmosphere (NASA 1976)
6150
6151stdatmPH(h) units=[m;Pa] domain=[-5000,11e3] range=[22877,177764] \
6152 atm (1 - (lapserate/stdatmT0) h)^(polyndx + 1) ; \
6153 (stdatmT0/lapserate) (1+(-(stdatmPH/stdatmP0)^(1/(polyndx + 1))))
6154
6155# Pressure vs. geometric height z; based on approx 45 deg latitude
6156stdatmP(z) units=[m;Pa] domain=[-5000,11e3] range=[22877,177764] \
6157 stdatmPH(geop_ht(z)); ~geop_ht(~stdatmPH(stdatmP))
6158
6159# Geopotential height from geometric height
6160# Based on approx 45 deg latitude
6161# Lower limits of domain and range are somewhat arbitrary; they
6162# correspond to the limits in the US Std Atm tables
6163
6164geop_ht(z) units=[m;m] domain=[-5000,) range=[-5004,) \
6165 (earthradUSAtm z) / (earthradUSAtm + z) ; \
6166 (earthradUSAtm geop_ht) / (earthradUSAtm + (-geop_ht))
6167
6168# The standard value for the sea-level acceleration due to gravity is
6169# 9.80665 m/s^2, but the actual value varies with latitude (Harrison 1949)
6170# R_eff = 2 g_phi / denom
6171# g_phi = 978.0356e-2 (1+0.0052885 sin(lat)^2+(-0.0000059) sin(2 lat)^2)
6172# or
6173# g_phi = 980.6160e-2 (1+(-0.0026373) cos(2 lat)+0.0000059 cos(2 lat)^2)
6174# denom = 3.085462e-6+2.27e-9 cos(2 lat)+(-2e-12) cos(4 lat) (minutes?)
6175# There is no inverse function; the standard value applies at a latitude
6176# of about 45.543 deg
6177
6178g_phi(lat) units=[deg;m/s2] domain=[0,90] noerror \
6179 980.6160e-2 (1+(-0.0026373) cos(2 lat)+0.0000059 cos(2 lat)^2) m/s2
6180
6181# effective Earth radius for relation of geometric height to
6182# geopotential height, as function of latitude (Harrison 1949)
6183
6184earthradius_eff(lat) units=[deg;m] domain=[0,90] noerror \
6185 m 2 9.780356 (1+0.0052885 sin(lat)^2+(-0.0000059) sin(2 lat)^2) / \
6186 (3.085462e-6 + 2.27e-9 cos(2 lat) + (-2e-12) cos(4 lat))
6187
6188# References
6189# Harrison, L.P. 1949. Relation Between Geopotential and Geometric
6190# Height. In Smithsonian Meteorological Tables. List, Robert J., ed.
6191# 6th ed., 4th reprint, 1968. Washington, DC: Smithsonian Institution.
6192# NASA. US National Aeronautics and Space Administration. 1976.
6193# US Standard Atmosphere 1976. Washington, DC: US Government Printing Office.
6194
6195# Gauge pressure functions
6196#
6197# Gauge pressure is measured relative to atmospheric pressure. In the English
6198# system, where pressure is often given in pounds per square inch, gauge
6199# pressure is often indicated by 'psig' to distinguish it from absolute
6200# pressure, often indicated by 'psia'. At the standard atmospheric pressure
6201# of 14.696 psia, a gauge pressure of 0 psig is an absolute pressure of 14.696
6202# psia; an automobile tire inflated to 31 psig has an absolute pressure of
6203# 45.696 psia.
6204#
6205# With gaugepressure(), the units must be specified (e.g., gaugepressure(1.5
6206# bar)); with psig(), the units are taken as psi, so the example above of tire
6207# pressure could be given as psig(31).
6208#
6209# If the normal elevation is significantly different from sea level, change
6210# Patm appropriately, and adjust the lower domain limit on the gaugepressure
6211# definition.
6212
6213Patm atm
6214
6215gaugepressure(x) units=[Pa;Pa] domain=[-101325,) range=[0,) \
6216 x + Patm ; gaugepressure+(-Patm)
6217
6218psig(x) units=[1;Pa] domain=[-14.6959487755135,) range=[0,) \
6219 gaugepressure(x psi) ; ~gaugepressure(psig) / psi
6220
6221
6222# Pressure for underwater diving
6223
6224seawater 0.1 bar / meter
6225msw meter seawater
6226fsw foot seawater
6227
6228#
6229# Wire Gauge
6230#
6231# This area is a nightmare with huge charts of wire gauge diameters
6232# that usually have no clear origin. There are at least 5 competing wire gauge
6233# systems to add to the confusion. The use of wire gauge is related to the
6234# manufacturing method: a metal rod is heated and drawn through a hole. The
6235# size change can't be too big. To get smaller wires, the process is repeated
6236# with a series of smaller holes. Generally larger gauges mean smaller wires.
6237# The gauges often have values such as "00" and "000" which are larger sizes
6238# than simply "0" gauge. In the tables that appear below, these gauges must be
6239# specified as negative numbers (e.g. "00" is -1, "000" is -2, etc).
6240# Alternatively, you can use the following units:
6241#
6242
6243g00 (-1)
6244g000 (-2)
6245g0000 (-3)
6246g00000 (-4)
6247g000000 (-5)
6248g0000000 (-6)
6249
6250# American Wire Gauge (AWG) or Brown & Sharpe Gauge appears to be the most
6251# important gauge. ASTM B-258 specifies that this gauge is based on geometric
6252# interpolation between gauge 0000, which is 0.46 inches exactly, and gauge 36
6253# which is 0.005 inches exactly. Therefore, the diameter in inches of a wire
6254# is given by the formula 1|200 92^((36-g)/39). Note that 92^(1/39) is close
6255# to 2^(1/6), so diameter is approximately halved for every 6 gauges. For the
6256# repeated zero values, use negative numbers in the formula. The same document
6257# also specifies rounding rules which seem to be ignored by makers of tables.
6258# Gauges up to 44 are to be specified with up to 4 significant figures, but no
6259# closer than 0.0001 inch. Gauges from 44 to 56 are to be rounded to the
6260# nearest 0.00001 inch.
6261#
6262# In addition to being used to measure wire thickness, this gauge is used to
6263# measure the thickness of sheets of aluminum, copper, and most metals other
6264# than steel, iron and zinc.
6265
6266wiregauge(g) units=[1;m] range=(0,) \
6267 1|200 92^((36+(-g))/39) in; 36+(-39)ln(200 wiregauge/in)/ln(92)
6268awg() wiregauge
6269
6270# Next we have the SWG, the Imperial or British Standard Wire Gauge. This one
6271# is piecewise linear. It was used for aluminum sheets but also shows up for
6272# wire used in jewelry.
6273
6274brwiregauge[in] \
6275 -6 0.5 \
6276 -5 0.464 \
6277 -3 0.4 \
6278 -2 0.372 \
6279 3 0.252 \
6280 6 0.192 \
6281 10 0.128 \
6282 14 0.08 \
6283 19 0.04 \
6284 23 0.024 \
6285 26 0.018 \
6286 28 0.0148 \
6287 30 0.0124 \
6288 39 0.0052 \
6289 49 0.0012 \
6290 50 0.001
6291
6292swg() brwiregauge
6293
6294# The following is from the Appendix to ASTM B 258
6295#
6296# For example, in U.S. gage, the standard for sheet metal is based on the
6297# weight of the metal, not on the thickness. 16-gage is listed as
6298# approximately .0625 inch thick and 40 ounces per square foot (the original
6299# standard was based on wrought iron at .2778 pounds per cubic inch; steel
6300# has almost entirely superseded wrought iron for sheet use, at .2833 pounds
6301# per cubic inch). Smaller numbers refer to greater thickness. There is no
6302# formula for converting gage to thickness or weight.
6303#
6304# It's rather unclear from the passage above whether the plate gauge values are
6305# therefore wrong if steel is being used. Reference [15] states that steel is
6306# in fact measured using this gauge (under the name Manufacturers' Standard
6307# Gauge) with a density of 501.84 lb/ft3 = 0.2904 lb/in3 used for steel.
6308# But this doesn't seem to be the correct density of steel (.2833 lb/in3 is
6309# closer).
6310#
6311# This gauge was established in 1893 for purposes of taxation.
6312
6313# Old plate gauge for iron
6314
6315plategauge[(oz/ft^2)/(480*lb/ft^3)] \
6316 -5 300 \
6317 1 180 \
6318 14 50 \
6319 16 40 \
6320 17 36 \
6321 20 24 \
6322 26 12 \
6323 31 7 \
6324 36 4.5 \
6325 38 4
6326
6327# Manufacturers Standard Gage
6328
6329stdgauge[(oz/ft^2)/(501.84*lb/ft^3)] \
6330 -5 300 \
6331 1 180 \
6332 14 50 \
6333 16 40 \
6334 17 36 \
6335 20 24 \
6336 26 12 \
6337 31 7 \
6338 36 4.5 \
6339 38 4
6340
6341# A special gauge is used for zinc sheet metal. Notice that larger gauges
6342# indicate thicker sheets.
6343
6344zincgauge[in] \
6345 1 0.002 \
6346 10 0.02 \
6347 15 0.04 \
6348 19 0.06 \
6349 23 0.1 \
6350 24 0.125 \
6351 27 0.5 \
6352 28 1
6353
6354#
6355# Imperial drill bit sizes are reported in inches or in a numerical or
6356# letter gauge.
6357#
6358
6359drillgauge[in] \
6360 1 0.2280 \
6361 2 0.2210 \
6362 3 0.2130 \
6363 4 0.2090 \
6364 5 0.2055 \
6365 6 0.2040 \
6366 7 0.2010 \
6367 8 0.1990 \
6368 9 0.1960 \
6369 10 0.1935 \
6370 11 0.1910 \
6371 12 0.1890 \
6372 13 0.1850 \
6373 14 0.1820 \
6374 15 0.1800 \
6375 16 0.1770 \
6376 17 0.1730 \
6377 18 0.1695 \
6378 19 0.1660 \
6379 20 0.1610 \
6380 22 0.1570 \
6381 23 0.1540 \
6382 24 0.1520 \
6383 25 0.1495 \
6384 26 0.1470 \
6385 27 0.1440 \
6386 28 0.1405 \
6387 29 0.1360 \
6388 30 0.1285 \
6389 31 0.1200 \
6390 32 0.1160 \
6391 33 0.1130 \
6392 34 0.1110 \
6393 35 0.1100 \
6394 36 0.1065 \
6395 38 0.1015 \
6396 39 0.0995 \
6397 40 0.0980 \
6398 41 0.0960 \
6399 42 0.0935 \
6400 43 0.0890 \
6401 44 0.0860 \
6402 45 0.0820 \
6403 46 0.0810 \
6404 48 0.0760 \
6405 51 0.0670 \
6406 52 0.0635 \
6407 53 0.0595 \
6408 54 0.0550 \
6409 55 0.0520 \
6410 56 0.0465 \
6411 57 0.0430 \
6412 65 0.0350 \
6413 66 0.0330 \
6414 68 0.0310 \
6415 69 0.0292 \
6416 70 0.0280 \
6417 71 0.0260 \
6418 73 0.0240 \
6419 74 0.0225 \
6420 75 0.0210 \
6421 76 0.0200 \
6422 78 0.0160 \
6423 79 0.0145 \
6424 80 0.0135 \
6425 88 0.0095 \
6426 104 0.0031
6427
6428drillA 0.234 in
6429drillB 0.238 in
6430drillC 0.242 in
6431drillD 0.246 in
6432drillE 0.250 in
6433drillF 0.257 in
6434drillG 0.261 in
6435drillH 0.266 in
6436drillI 0.272 in
6437drillJ 0.277 in
6438drillK 0.281 in
6439drillL 0.290 in
6440drillM 0.295 in
6441drillN 0.302 in
6442drillO 0.316 in
6443drillP 0.323 in
6444drillQ 0.332 in
6445drillR 0.339 in
6446drillS 0.348 in
6447drillT 0.358 in
6448drillU 0.368 in
6449drillV 0.377 in
6450drillW 0.386 in
6451drillX 0.397 in
6452drillY 0.404 in
6453drillZ 0.413 in
6454
6455#
6456# Screw sizes
6457#
6458# In the USA, screw diameters for both wood screws and machine screws
6459# are reported using a gauge number. Metric machine screws are
6460# reported as Mxx where xx is the diameter in mm.
6461#
6462
6463screwgauge(g) units=[1;m] range=[0,) \
6464 (.06 + .013 g) in ; (screwgauge/in + (-.06)) / .013
6465
6466#
6467# Abrasive grit size
6468#
6469# Standards governing abrasive grit sizes are complicated, specifying
6470# fractions of particles that are passed or retained by different mesh
6471# sizes. As a result, it is not possible to make precise comparisons
6472# of different grit standards. The tables below allow the
6473# determination of rough equivlants by using median particle size.
6474#
6475# Standards in the USA are determined by the Unified Abrasives
6476# Manufacturers' Association (UAMA), which resulted from the merger of
6477# several previous organizations. One of the old organizations was
6478# CAMI (Coated Abrasives Manufacturers' Institute).
6479#
6480# UAMA has a web page with plots showing abrasive particle ranges for
6481# various different grits and comparisons between standards.
6482#
6483# https://uama.org/abrasives-101/
6484#
6485# Abrasives are grouped into "bonded" abrasives for use with grinding
6486# wheels and "coated" abrasives for sandpapers and abrasive films.
6487# The industry uses different grit standards for these two
6488# categories.
6489#
6490# Another division is between "macrogrits", grits below 240 and
6491# "microgrits", which are above 240. Standards differ, as do methods
6492# for determining particle size. In the USA, ANSI B74.12 is the
6493# standard governing macrogrits. ANSI B74.10 covers bonded microgrit
6494# abrasives, and ANSI B74.18 covers coated microgrit abrasives. It
6495# appears that the coated standard is identical to the bonded standard
6496# for grits up through 600 but then diverges significantly.
6497#
6498# European grit sizes are determined by the Federation of European
6499# Producers of Abrasives. http://www.fepa-abrasives.org
6500#
6501# They give two standards, the "F" grit for bonded abrasives and the
6502# "P" grit for coated abrasives. This data is taken directly from
6503# their web page.
6504
6505# FEPA P grit for coated abrasives is commonly seen on sandpaper in
6506# the USA where the paper will be marked P600, for example. FEPA P
6507# grits are said to be more tightly constrained than comparable ANSI
6508# grits so that the particles are more uniform in size and hence give
6509# a better finish.
6510
6511grit_P[micron] \
6512 12 1815 \
6513 16 1324 \
6514 20 1000 \
6515 24 764 \
6516 30 642 \
6517 36 538 \
6518 40 425 \
6519 50 336 \
6520 60 269 \
6521 80 201 \
6522 100 162 \
6523 120 125 \
6524 150 100 \
6525 180 82 \
6526 220 68 \
6527 240 58.5 \
6528 280 52.2 \
6529 320 46.2 \
6530 360 40.5 \
6531 400 35 \
6532 500 30.2 \
6533 600 25.8 \
6534 800 21.8 \
6535 1000 18.3 \
6536 1200 15.3 \
6537 1500 12.6 \
6538 2000 10.3 \
6539 2500 8.4
6540
6541# The F grit is the European standard for bonded abrasives such as
6542# grinding wheels
6543
6544grit_F[micron] \
6545 4 4890 \
6546 5 4125 \
6547 6 3460 \
6548 7 2900 \
6549 8 2460 \
6550 10 2085 \
6551 12 1765 \
6552 14 1470 \
6553 16 1230 \
6554 20 1040 \
6555 22 885 \
6556 24 745 \
6557 30 625 \
6558 36 525 \
6559 40 438 \
6560 46 370 \
6561 54 310 \
6562 60 260 \
6563 70 218 \
6564 80 185 \
6565 90 154 \
6566 100 129 \
6567 120 109 \
6568 150 82 \
6569 180 69 \
6570 220 58 \
6571 230 53 \
6572 240 44.5 \
6573 280 36.5 \
6574 320 29.2 \
6575 360 22.8 \
6576 400 17.3 \
6577 500 12.8 \
6578 600 9.3 \
6579 800 6.5 \
6580 1000 4.5 \
6581 1200 3 \
6582 1500 2.0 \
6583 2000 1.2
6584
6585# According to the UAMA web page, the ANSI bonded and ANSI coated standards
6586# are identical to FEPA F in the macrogrit range (under 240 grit), so these
6587# values are taken from the FEPA F table. The values for 240 and above are
6588# from the UAMA web site and represent the average of the "d50" range
6589# endpoints listed there.
6590
6591ansibonded[micron] \
6592 4 4890 \
6593 5 4125 \
6594 6 3460 \
6595 7 2900 \
6596 8 2460 \
6597 10 2085 \
6598 12 1765 \
6599 14 1470 \
6600 16 1230 \
6601 20 1040 \
6602 22 885 \
6603 24 745 \
6604 30 625 \
6605 36 525 \
6606 40 438 \
6607 46 370 \
6608 54 310 \
6609 60 260 \
6610 70 218 \
6611 80 185 \
6612 90 154 \
6613 100 129 \
6614 120 109 \
6615 150 82 \
6616 180 69 \
6617 220 58 \
6618 240 50 \
6619 280 39.5 \
6620 320 29.5 \
6621 360 23 \
6622 400 18.25 \
6623 500 13.9 \
6624 600 10.55 \
6625 800 7.65 \
6626 1000 5.8 \
6627 1200 3.8
6628
6629grit_ansibonded() ansibonded
6630
6631# Like the bonded grit, the coated macrogrits below 240 are taken from the
6632# FEPA F table. Data above this is from the UAMA site. Note that the coated
6633# and bonded standards are evidently the same from 240 up to 600 grit, but
6634# starting at 800 grit, the coated standard diverges. The data from UAMA show
6635# that 800 grit coated has an average size slightly larger than the average
6636# size of 600 grit coated/bonded. However, the 800 grit has a significantly
6637# smaller particle size variation.
6638#
6639# Because of this non-monotonicity from 600 grit to 800 grit this definition
6640# produces a warning about the lack of a unique inverse.
6641
6642ansicoated[micron] noerror \
6643 4 4890 \
6644 5 4125 \
6645 6 3460 \
6646 7 2900 \
6647 8 2460 \
6648 10 2085 \
6649 12 1765 \
6650 14 1470 \
6651 16 1230 \
6652 20 1040 \
6653 22 885 \
6654 24 745 \
6655 30 625 \
6656 36 525 \
6657 40 438 \
6658 46 370 \
6659 54 310 \
6660 60 260 \
6661 70 218 \
6662 80 185 \
6663 90 154 \
6664 100 129 \
6665 120 109 \
6666 150 82 \
6667 180 69 \
6668 220 58 \
6669 240 50 \
6670 280 39.5 \
6671 320 29.5 \
6672 360 23 \
6673 400 18.25 \
6674 500 13.9 \
6675 600 10.55 \
6676 800 11.5 \
6677 1000 9.5 \
6678 2000 7.2 \
6679 2500 5.5 \
6680 3000 4 \
6681 4000 3 \
6682 6000 2 \
6683 8000 1.2
6684
6685grit_ansicoated() ansicoated
6686
6687
6688#
6689# Is this correct? This is the JIS Japanese standard used on waterstones
6690#
6691jisgrit[micron] \
6692 150 75 \
6693 180 63 \
6694 220 53 \
6695 280 48 \
6696 320 40 \
6697 360 35 \
6698 400 30 \
6699 600 20 \
6700 700 17 \
6701 800 14 \
6702 1000 11.5 \
6703 1200 9.5 \
6704 1500 8 \
6705 2000 6.7 \
6706 2500 5.5 \
6707 3000 4 \
6708 4000 3 \
6709 6000 2 \
6710 8000 1.2
6711
6712# The "Finishing Scale" marked with an A (e.g. A75). This information
6713# is from the web page of the sand paper manufacturer Klingspor
6714# https://www.klingspor.com/ctemplate1.aspx?page=default/html/gritGradingSystems_en-US.html
6715#
6716# I have no information about what this scale is used for.
6717
6718grit_A[micron]\
6719 16 15.3 \
6720 25 21.8 \
6721 30 23.6 \
6722 35 25.75 \
6723 45 35 \
6724 60 46.2 \
6725 65 53.5 \
6726 75 58.5 \
6727 90 65 \
6728 110 78 \
6729 130 93 \
6730 160 127 \
6731 200 156
6732#
6733# Grits for DMT brand diamond sharpening stones from
6734# https://www.dmtsharp.com/resources/dmt-catalog-product-information.html
6735# "DMT Diamond Grits" PDF download
6736
6737dmtxxcoarse 120 micron # 120 mesh
6738dmtsilver dmtxxcoarse
6739dmtxx dmtxxcoarse
6740dmtxcoarse 60 micron # 220 mesh
6741dmtx dmtxcoarse
6742dmtblack dmtxcoarse
6743dmtcoarse 45 micron # 325 mesh
6744dmtc dmtcoarse
6745dmtblue dmtcoarse
6746dmtfine 25 micron # 600 mesh
6747dmtred dmtfine
6748dmtf dmtfine
6749dmtefine 9 micron # 1200 mesh
6750dmte dmtefine
6751dmtgreen dmtefine
6752dmtceramic 7 micron # 2200 mesh
6753dmtcer dmtceramic
6754dmtwhite dmtceramic
6755dmteefine 3 micron # 8000 mesh
6756dmttan dmteefine
6757dmtee dmteefine
6758
6759#
6760# The following values come from a page in the Norton Stones catalog,
6761# available at their web page, http://www.nortonstones.com.
6762#
6763
6764hardtranslucentarkansas 6 micron # Natural novaculite (silicon quartz)
6765softarkansas 22 micron # stones
6766
6767extrafineindia 22 micron # India stones are Norton's manufactured
6768fineindia 35 micron # aluminum oxide product
6769mediumindia 53.5 micron
6770coarseindia 97 micron
6771
6772finecrystolon 45 micron # Crystolon stones are Norton's
6773mediumcrystalon 78 micron # manufactured silicon carbide product
6774coarsecrystalon 127 micron
6775
6776# The following are not from the Norton catalog
6777hardblackarkansas 6 micron
6778hardwhitearkansas 11 micron
6779washita 35 micron
6780
6781#
6782# Mesh systems for measuring particle sizes by sifting through a wire
6783# mesh or sieve
6784#
6785
6786# The Tyler system and US Sieve system are based on four steps for
6787# each factor of 2 change in the size, so each size is 2^1|4 different
6788# from the adjacent sizes. Unfortunately, the mesh numbers are
6789# arbitrary, so the sizes cannot be expressed with a functional form.
6790# Various references round the values differently. The mesh numbers
6791# are supposed to correspond to the number of holes per inch, but this
6792# correspondence is only approximate because it doesn't include the
6793# wire size of the mesh.
6794
6795# The Tyler Mesh system was apparently introduced by the WS Tyler
6796# company, but it appears that they no longer use it. They follow the
6797# ASTM E11 standard.
6798
6799meshtyler[micron] \
6800 2.5 8000 \
6801 3 6727 \
6802 3.5 5657 \
6803 4 4757 \
6804 5 4000 \
6805 6 3364 \
6806 7 2828 \
6807 8 2378 \
6808 9 2000 \
6809 10 1682 \
6810 12 1414 \
6811 14 1189 \
6812 16 1000 \
6813 20 841 \
6814 24 707 \
6815 28 595 \
6816 32 500 \
6817 35 420 \
6818 42 354 \
6819 48 297 \
6820 60 250 \
6821 65 210 \
6822 80 177 \
6823 100 149 \
6824 115 125 \
6825 150 105 \
6826 170 88 \
6827 200 74 \
6828 250 63 \
6829 270 53 \
6830 325 44 \
6831 400 37
6832
6833# US Sieve size, ASTM E11
6834#
6835# The WS Tyler company prints the list from ASTM E11 in
6836# A Calculator for ASTM E11 Standard Sieve Designations
6837# https://blog.wstyler.com/particle-analysis/astm-e11-standard-designations
6838
6839sieve[micron] \
6840 3.5 5600 \
6841 4 4750 \
6842 5 4000 \
6843 6 3350 \
6844 7 2800 \
6845 8 2360 \
6846 10 2000 \
6847 12 1700 \
6848 14 1400 \
6849 16 1180 \
6850 18 1000 \
6851 20 850 \
6852 25 710 \
6853 30 600 \
6854 35 500 \
6855 40 425 \
6856 45 355 \
6857 50 300 \
6858 60 250 \
6859 70 212 \
6860 80 180 \
6861 100 150 \
6862 120 125 \
6863 140 106 \
6864 170 90 \
6865 200 75 \
6866 230 63 \
6867 270 53 \
6868 325 45 \
6869 400 38 \
6870 450 32 \
6871 500 25 \
6872 625 20 # These last two values are not in the standard series
6873 # but were included in the ASTM standard because they
6874meshUS() sieve # were in common usage.
6875
6876# British Mesh size, BS 410: 1986
6877# This system appears to correspond to the Tyler and US system, but
6878# with different mesh numbers.
6879#
6880# http://www.panadyne.com/technical/panadyne_international_sieve_chart.pdf
6881#
6882
6883meshbritish[micron] \
6884 3 5657 \
6885 3.5 4757 \
6886 4 4000 \
6887 5 3364 \
6888 6 2828 \
6889 7 2378 \
6890 8 2000 \
6891 10 1682 \
6892 12 1414 \
6893 14 1189 \
6894 16 1000 \
6895 18 841 \
6896 22 707 \
6897 25 595 \
6898 30 500 \
6899 36 420 \
6900 44 354 \
6901 52 297 \
6902 60 250 \
6903 72 210 \
6904 85 177 \
6905 100 149 \
6906 120 125 \
6907 150 105 \
6908 170 88 \
6909 200 74 \
6910 240 63 \
6911 300 53 \
6912 350 44 \
6913 400 37
6914
6915# French system, AFNOR NFX11-501: 1970
6916# The system appears to be based on size doubling every 3 mesh
6917# numbers, though the values have been aggressively rounded.
6918# It's not clear if the unrounded values would be considered
6919# incorrect, so this is given as a table rather than a function.
6920# Functional form:
6921# meshtamis(mesh) units=[1;m] 5000 2^(1|3 (mesh-38)) micron
6922#
6923# http://www.panadyne.com/technical/panadyne_international_sieve_chart.pdf
6924
6925meshtamis[micron] \
6926 17 40 \
6927 18 50 \
6928 19 63 \
6929 20 80 \
6930 21 100 \
6931 22 125 \
6932 23 160 \
6933 24 200 \
6934 25 250 \
6935 26 315 \
6936 27 400 \
6937 28 500 \
6938 29 630 \
6939 30 800 \
6940 31 1000 \
6941 32 1250 \
6942 33 1600 \
6943 34 2000 \
6944 35 2500 \
6945 36 3150 \
6946 37 4000 \
6947 38 5000
6948
6949#
6950# Ring size. All ring sizes are given as the circumference of the ring.
6951#
6952
6953# USA ring sizes. Several slightly different definitions seem to be in
6954# circulation. According to [15], the interior diameter of size n ring in
6955# inches is 0.32 n + 0.458 for n ranging from 3 to 13.5 by steps of 0.5. The
6956# size 2 ring is inconsistently 0.538in and no 2.5 size is listed.
6957#
6958# However, other sources list 0.455 + 0.0326 n and 0.4525 + 0.0324 n as the
6959# diameter and list no special case for size 2. (Or alternatively they are
6960# 1.43 + .102 n and 1.4216+.1018 n for measuring circumference in inches.) One
6961# reference claimed that the original system was that each size was 1|10 inch
6962# circumference, but that source doesn't have an explanation for the modern
6963# system which is somewhat different.
6964
6965ringsize(n) units=[1;in] domain=[2,) range=[1.6252,) \
6966 (1.4216+.1018 n) in ; (ringsize/in + (-1.4216))/.1018
6967
6968# Old practice in the UK measured rings using the "Wheatsheaf gauge" with sizes
6969# specified alphabetically and based on the ring inside diameter in steps of
6970# 1|64 inch. This system was replaced in 1987 by British Standard 6820 which
6971# specifies sizes based on circumference. Each size is 1.25 mm different from
6972# the preceding size. The baseline is size C which is 40 mm circumference.
6973# The new sizes are close to the old ones. Sometimes it's necessary to go
6974# beyond size Z to Z+1, Z+2, etc.
6975
6976sizeAring 37.50 mm
6977sizeBring 38.75 mm
6978sizeCring 40.00 mm
6979sizeDring 41.25 mm
6980sizeEring 42.50 mm
6981sizeFring 43.75 mm
6982sizeGring 45.00 mm
6983sizeHring 46.25 mm
6984sizeIring 47.50 mm
6985sizeJring 48.75 mm
6986sizeKring 50.00 mm
6987sizeLring 51.25 mm
6988sizeMring 52.50 mm
6989sizeNring 53.75 mm
6990sizeOring 55.00 mm
6991sizePring 56.25 mm
6992sizeQring 57.50 mm
6993sizeRring 58.75 mm
6994sizeSring 60.00 mm
6995sizeTring 61.25 mm
6996sizeUring 62.50 mm
6997sizeVring 63.75 mm
6998sizeWring 65.00 mm
6999sizeXring 66.25 mm
7000sizeYring 67.50 mm
7001sizeZring 68.75 mm
7002
7003# Japanese sizes start with size 1 at a 13mm inside diameter and each size is
7004# 1|3 mm larger in diameter than the previous one. They are multiplied by pi
7005# to give circumference.
7006
7007jpringsize(n) units=[1;mm] domain=[1,) range=[0.040840704,) \
7008 (38|3 + n/3) pi mm ; 3 jpringsize/ pi mm + (-38)
7009
7010# The European ring sizes are the length of the circumference in mm minus 40.
7011
7012euringsize(n) units=[1;mm] (n+40) mm ; euringsize/mm + (-40)
7013
7014#
7015# Abbreviations
7016#
7017
7018mph mile/hr
7019brmpg mile/brgallon
7020usmpg mile/usgallon
7021mpg mile/gal
7022kph km/hr
7023fL footlambert
7024fpm ft/min
7025fps ft/s
7026rpm rev/min
7027rps rev/sec
7028mi mile
7029smi mile
7030nmi nauticalmile
7031mbh 1e3 btu/hour
7032mcm 1e3 circularmil
7033ipy inch/year # used for corrosion rates
7034ccf 100 ft^3 # used for selling water [18]
7035Mcf 1000 ft^3 # not million cubic feet [18]
7036kp kilopond
7037kpm kp meter
7038Wh W hour
7039hph hp hour
7040plf lb / foot # pounds per linear foot
7041
7042#
7043# Compatibility units with Unix version
7044#
7045
7046pa Pa
7047ev eV
7048hg Hg
7049oe Oe
7050mh mH
7051rd rod
7052pf pF
7053gr grain
7054nt N
7055hz Hz
7056hd hogshead
7057dry drygallon/gallon
7058nmile nauticalmile
7059beV GeV
7060bev beV
7061coul C
7062
7063#
7064# Radioactivity units
7065#
7066event !dimensionless
7067becquerel event /s # Activity of radioactive source
7068Bq becquerel #
7069curie 3.7e10 Bq # Defined in 1910 as the radioactivity
7070Ci curie # emitted by the amount of radon that is
7071 # in equilibrium with 1 gram of radium.
7072rutherford 1e6 Bq #
7073
7074RADIATION_DOSE gray
7075gray J/kg # Absorbed dose of radiation
7076Gy gray #
7077rad 1e-2 Gy # From Radiation Absorbed Dose
7078rep 8.38 mGy # Roentgen Equivalent Physical, the amount
7079 # of radiation which , absorbed in the
7080 # body, would liberate the same amount
7081 # of energy as 1 roentgen of X rays
7082 # would, or 97 ergs.
7083
7084sievert J/kg # Dose equivalent: dosage that has the
7085Sv sievert # same effect on human tissues as 200
7086rem 1e-2 Sv # keV X-rays. Different types of
7087 # radiation are weighted by the
7088 # Relative Biological Effectiveness
7089 # (RBE).
7090 #
7091 # Radiation type RBE
7092 # X-ray, gamma ray 1
7093 # beta rays, > 1 MeV 1
7094 # beta rays, < 1 MeV 1.08
7095 # neutrons, < 1 MeV 4-5
7096 # neutrons, 1-10 MeV 10
7097 # protons, 1 MeV 8.5
7098 # protons, .1 MeV 10
7099 # alpha, 5 MeV 15
7100 # alpha, 1 MeV 20
7101 #
7102 # The energies are the kinetic energy
7103 # of the particles. Slower particles
7104 # interact more, so they are more
7105 # effective ionizers, and hence have
7106 # higher RBE values.
7107 #
7108 # rem stands for Roentgen Equivalent
7109 # Mammal
7110banana_dose 0.1e-6 sievert # Informal measure of the dose due to
7111 # eating one average sized banana
7112roentgen 2.58e-4 C / kg # Ionizing radiation that produces
7113 # 1 statcoulomb of charge in 1 cc of
7114 # dry air at stp.
7115rontgen roentgen # Sometimes it appears spelled this way
7116sievertunit 8.38 rontgen # Unit of gamma ray dose delivered in one
7117 # hour at a distance of 1 cm from a
7118 # point source of 1 mg of radium
7119 # enclosed in platinum .5 mm thick.
7120
7121eman 1e-7 Ci/m^3 # radioactive concentration
7122mache 3.7e-7 Ci/m^3
7123
7124#
7125# Atomic weights. The atomic weight of an element is the ratio of the mass of
7126# a mole of the element to 1|12 of a mole of Carbon 12. For each element, we
7127# list the atomic weights of all of the isotopes. The Standard Atomic Weights
7128# apply to the elements in the isotopic composition that occurs naturally on
7129# Earth. These are computed values based on the isotopic distribution, and
7130# may vary for specific samples. Elements which do not occur naturally do
7131# not have Standard Atomic Weights. For these elements, if data on the most
7132# stable isotope is available, is given. Otherwise, the user must specify the
7133# desired isotope.
7134
7135!include elements.units
7136
7137# Density of the elements
7138#
7139# Note some elements occur in multiple forms (allotropes) with different
7140# densities, and they are accordingly listed multiple times.
7141
7142# Density of gas phase elements at STP
7143
7144hydrogendensity 0.08988 g/l
7145heliumdensity 0.1786 g/l
7146neondensity 0.9002 g/l
7147nitrogendensity 1.2506 g/l
7148oxygendensity 1.429 g/l
7149fluorinedensity 1.696 g/l
7150argondensity 1.784 g/l
7151chlorinedensity 3.2 g/l
7152kryptondensity 3.749 g/l
7153xenondensity 5.894 g/l
7154radondensity 9.73 g/l
7155
7156# Density of liquid phase elements near room temperature
7157
7158brominedensity 3.1028 g/cm^3
7159mercurydensity 13.534 g/cm^3
7160
7161# Density of solid elements near room temperature
7162
7163lithiumdensity 0.534 g/cm^3
7164potassiumdensity 0.862 g/cm^3
7165sodiumdensity 0.968 g/cm^3
7166rubidiumdensity 1.532 g/cm^3
7167calciumdensity 1.55 g/cm^3
7168magnesiumdensity 1.738 g/cm^3
7169phosphorus_white_density 1.823 g/cm^3
7170berylliumdensity 1.85 g/cm^3
7171sulfur_gamma_density 1.92 g/cm^3
7172cesiumdensity 1.93 g/cm^3
7173carbon_amorphous_density 1.95 g/cm^3 # average value
7174sulfur_betadensity 1.96 g/cm^3
7175sulfur_alpha_density 2.07 g/cm^3
7176carbon_graphite_density 2.267 g/cm^3
7177phosphorus_red_density 2.27 g/cm^3 # average value
7178silicondensity 2.3290 g/cm^3
7179phosphorus_violet_density 2.36 g/cm^3
7180borondensity 2.37 g/cm^3
7181strontiumdensity 2.64 g/cm^3
7182phosphorus_black_density 2.69 g/cm^3
7183aluminumdensity 2.7 g/cm^3
7184bariumdensity 3.51 g/cm^3
7185carbon_diamond_density 3.515 g/cm^3
7186scandiumdensity 3.985 g/cm^3
7187selenium_vitreous_density 4.28 g/cm^3
7188selenium_alpha_density 4.39 g/cm^3
7189titaniumdensity 4.406 g/cm^3
7190yttriumdensity 4.472 g/cm^3
7191selenium_gray_density 4.81 g/cm^3
7192iodinedensity 4.933 g/cm^3
7193europiumdensity 5.264 g/cm^3
7194germaniumdensity 5.323 g/cm^3
7195radiumdensity 5.5 g/cm^3
7196arsenicdensity 5.727 g/cm^3
7197tin_alpha_density 5.769 g/cm^3
7198galliumdensity 5.91 g/cm^3
7199vanadiumdensity 6.11 g/cm^3
7200lanthanumdensity 6.162 g/cm^3
7201telluriumdensity 6.24 g/cm^3
7202zirconiumdensity 6.52 g/cm^3
7203antimonydensity 6.697 g/cm^3
7204ceriumdensity 6.77 g/cm^3
7205praseodymiumdensity 6.77 g/cm^3
7206ytterbiumdensity 6.9 g/cm^3
7207neodymiumdensity 7.01 g/cm^3
7208zincdensity 7.14 g/cm^3
7209chromiumdensity 7.19 g/cm^3
7210manganesedensity 7.21 g/cm^3
7211promethiumdensity 7.26 g/cm^3
7212tin_beta_density 7.265 g/cm^3
7213indiumdensity 7.31 g/cm^3
7214samariumdensity 7.52 g/cm^3
7215irondensity 7.874 g/cm^3
7216gadoliniumdensity 7.9 g/cm^3
7217terbiumdensity 8.23 g/cm^3
7218dysprosiumdensity 8.54 g/cm^3
7219niobiumdensity 8.57 g/cm^3
7220cadmiumdensity 8.65 g/cm^3
7221holmiumdensity 8.79 g/cm^3
7222cobaltdensity 8.9 g/cm^3
7223nickeldensity 8.908 g/cm^3
7224erbiumdensity 9.066 g/cm^3
7225polonium_alpha_density 9.196 g/cm^3
7226thuliumdensity 9.32 g/cm^3
7227polonium_beta_density 9.398 g/cm^3
7228bismuthdensity 9.78 g/cm^3
7229lutetiumdensity 9.841 g/cm^3
7230actiniumdensity 10 g/cm^3
7231molybdenumdensity 10.28 g/cm^3
7232silverdensity 10.49 g/cm^3
7233technetiumdensity 11 g/cm^3
7234leaddensity 11.34 g/cm^3
7235thoriumdensity 11.7 g/cm^3
7236thalliumdensity 11.85 g/cm^3
7237americiumdensity 12 g/cm^3
7238palladiumdensity 12.023 g/cm^3
7239rhodiumdensity 12.41 g/cm^3
7240rutheniumdensity 12.45 g/cm^3
7241berkelium_beta_density 13.25 g/cm^3
7242hafniumdensity 13.31 g/cm^3
7243curiumdensity 13.51 g/cm^3
7244berkelium_alphadensity 14.78 g/cm^3
7245californiumdensity 15.1 g/cm^3
7246protactiniumdensity 15.37 g/cm^3
7247tantalumdensity 16.69 g/cm^3
7248uraniumdensity 19.1 g/cm^3
7249tungstendensity 19.3 g/cm^3
7250golddensity 19.30 g/cm^3
7251plutoniumdensity 19.816 g/cm^3
7252neptuniumdensity 20.45 g/cm^3 # alpha form, only one at room temp
7253rheniumdensity 21.02 g/cm^3
7254platinumdensity 21.45 g/cm^3
7255iridiumdensity 22.56 g/cm^3
7256osmiumdensity 22.59 g/cm^3
7257
7258# A few alternate names
7259
7260tin_gray tin_alpha_density
7261tin_white tin_beta_density
7262graphitedensity carbon_graphite_density
7263diamonddensity carbon_diamond_density
7264
7265# Predicted density of elements that have not been made in sufficient
7266# quantities for measurement.
7267
7268franciumdensity 2.48 g/cm^3 # liquid, predicted melting point 8 degC
7269astatinedensity 6.35 g/cm^3
7270einsteiniumdensity 8.84 g/cm^3
7271fermiumdensity 9.7 g/cm^3
7272nobeliumdensity 9.9 g/cm^3
7273mendeleviumdensity 10.3 g/cm^3
7274lawrenciumdensity 16 g/cm^3
7275rutherfordiumdensity 23.2 g/cm^3
7276roentgeniumdensity 28.7 g/cm^3
7277dubniumdensity 29.3 g/cm^3
7278darmstadtiumdensity 34.8 g/cm^3
7279seaborgiumdensity 35 g/cm^3
7280bohriumdensity 37.1 g/cm^3
7281meitneriumdensity 37.4 g/cm^3
7282hassiumdensity 41 g/cm^3
7283
7284#
7285# population units
7286#
7287
7288people 1
7289person people
7290death people
7291capita people
7292percapita per capita
7293
7294# TGM dozen based unit system listed on the "dozenal" forum
7295# http://www.dozenalsociety.org.uk/apps/tgm.htm. These units are
7296# proposed as an allegedly more rational alternative to the SI system.
7297
7298Tim 12^-4 hour # Time
7299Grafut gravity Tim^2 # Length based on gravity
7300Surf Grafut^2 # area
7301Volm Grafut^3 # volume
7302Vlos Grafut/Tim # speed
7303Denz Maz/Volm # density
7304Mag Maz gravity # force
7305Maz Volm kg / oldliter # mass based on water
7306
7307# Abbreviations
7308
7309# Tm Tim # Conflicts with Tm = Terameter
7310Gf Grafut
7311Sf Surf
7312Vm Volm
7313Vl Vlos
7314Mz Maz
7315Dz Denz
7316
7317# Dozen based unit prefixes
7318
7319Zena- 12
7320Duna- 12^2
7321Trina- 12^3
7322Quedra- 12^4
7323Quena- 12^5
7324Hesa- 12^6
7325Seva- 12^7
7326Aka- 12^8
7327Neena- 12^9
7328Dexa- 12^10
7329Lefa- 12^11
7330Zennila- 12^12
7331
7332Zeni- 12^-1
7333Duni- 12^-2
7334Trini- 12^-3
7335Quedri- 12^-4
7336Queni- 12^-5
7337Hesi- 12^-6
7338Sevi- 12^-7
7339Aki- 12^-8
7340Neeni- 12^-9
7341Dexi- 12^-10
7342Lefi- 12^-11
7343Zennili- 12^-12
7344
7345#
7346# Traditional Japanese units (shakkanhou)
7347#
7348# The traditional system of weights and measures is called shakkanhou from the
7349# shaku and the ken. Japan accepted SI units in 1891 and legalized conversions
7350# to the traditional system. In 1909 the inch-pound system was also legalized,
7351# so Japan had three legally approved systems. A change to the metric system
7352# started in 1921 but there was a lot of resistance. The Measurement Law of
7353# October 1999 prohibits sales in anything but SI units. However, the old
7354# units still live on in construction and as the basis for paper sizes of books
7355# and tools used for handicrafts.
7356#
7357# Note that units below use the Hepburn romanization system. Some other
7358# systems would render "mou", "jou", and "chou" as "mo", "jo" and "cho".
7359#
7360#
7361# http://hiramatu-hifuka.com/onyak/onyindx.html
7362
7363# Japanese Proportions. These are still in everyday use. They also
7364# get used as units to represent the proportion of the standard unit.
7365
7366wari_proportion 1|10
7367wari wari_proportion
7368bu_proportion 1|100 # The character bu can also be read fun or bun
7369 # but usually "bu" is used for units.
7370rin_proportion 1|1000
7371mou_proportion 1|10000
7372
7373
7374# Japanese Length Measures
7375#
7376# The length system is called kanejaku or
7377# square and originated in China. It was
7378# adopted as Japan's official measure in 701
7379# by the Taiho Code. This system is still in
7380# common use in architecture and clothing.
7381
7382shaku 1|3.3 m
7383mou 1|10000 shaku
7384rin 1|1000 shaku
7385bu_distance 1|100 shaku
7386sun 1|10 shaku
7387jou_distance 10 shaku
7388jou jou_distance
7389
7390kanejakusun sun # Alias to emphasize architectural name
7391kanejaku shaku
7392kanejakujou jou
7393
7394# http://en.wikipedia.org/wiki/Taiwanese_units_of_measurement
7395taichi shaku # http://zh.wikipedia.org/wiki/台尺
7396taicun sun # http://zh.wikipedia.org/wiki/台制
7397!utf8
7398台尺 taichi # via Hanyu Pinyin romanizations
7399台寸 taicun
7400!endutf8
7401
7402# In context of clothing, shaku is different from architecture
7403
7404kujirajaku 10|8 shaku
7405kujirajakusun 1|10 kujirajaku
7406kujirajakubu 1|100 kujirajaku
7407kujirajakujou 10 kujirajaku
7408tan_distance 3 kujirajakujou
7409
7410ken 6 shaku # Also sometimes 6.3, 6.5, or 6.6
7411 # http://www.homarewood.co.jp/syakusun.htm
7412
7413# mostly unused
7414chou_distance 60 ken
7415chou chou_distance
7416ri 36 chou
7417
7418# Japanese Area Measures
7419
7420# Tsubo is still used for land size, though the others are more
7421# recognized by their homonyms in the other measurements.
7422
7423gou_area 1|10 tsubo
7424tsubo 36 shaku^2 # Size of two tatami = ken^2 ??
7425se 30 tsubo
7426tan_area 10 se
7427chou_area 10 tan_area
7428
7429# http://en.wikipedia.org/wiki/Taiwanese_units_of_measurement
7430ping tsubo # http://zh.wikipedia.org/wiki/坪
7431jia 2934 ping # http://zh.wikipedia.org/wiki/甲_(单位)
7432fen 1|10 jia # http://zh.wikipedia.org/wiki/分
7433fen_area 1|10 jia # Protection against future collisions
7434!utf8
7435坪 ping # via Hanyu Pinyin romanizations
7436甲 jia
7437分 fen
7438分地 fen_area # Protection against future collisions
7439!endutf8
7440
7441# Japanese architecture is based on a "standard" size of tatami mat.
7442# Room sizes today are given in number of tatami, and this number
7443# determines the spacing between colums and hence sizes of sliding
7444# doors and paper screens. However, every region has its own slightly
7445# different tatami size. Edoma, used in and around Tokyo and
7446# Hokkaido, is becoming a nationwide standard. Kyouma is used around
7447# Kyoto, Osaka and Kyuushu, and Chuukyouma is used around Nagoya.
7448# Note that the tatami all have the aspect ratio 2:1 so that the mats
7449# can tile the room with some of them turned 90 degrees.
7450#
7451# http://www.moon2.net/tatami/infotatami/structure.html
7452
7453edoma (5.8*2.9) shaku^2
7454kyouma (6.3*3.15) shaku^2
7455chuukyouma (6*3) shaku^2
7456jou_area edoma
7457tatami jou_area
7458
7459# Japanese Volume Measures
7460
7461# The "shou" is still used for such things as alcohol and seasonings.
7462# Large quantities of paint are still purchased in terms of "to".
7463
7464shaku_volume 1|10 gou_volume
7465gou_volume 1|10 shou
7466gou gou_volume
7467shou (4.9*4.9*2.7) sun^3 # The character shou which is
7468 # the same as masu refers to a
7469 # rectangular wooden cup used to
7470 # measure liquids and cereal.
7471 # Sake is sometimes served in a masu
7472 # Note that it happens to be
7473 # EXACTLY 7^4/11^3 liters.
7474to 10 shou
7475koku 10 to # No longer used; historically a measure of rice
7476
7477# Japanese Weight Measures
7478#
7479# https://web.archive.org/web/20040927115452/http://wyoming.hp.infoseek.co.jp/zatugaku/zamoney.html
7480# https://en.wikipedia.org/wiki/Japanese_units_of_measurement
7481
7482# Not really used anymore.
7483
7484rin_weight 1|10 bu_weight
7485bu_weight 1|10 monme
7486fun 1|10 monme
7487monme momme
7488kin 160 monme
7489kan 1000 monme
7490kwan kan # This was the old pronunciation of the unit.
7491 # The old spelling persisted a few centuries
7492 # longer and was not changed until around
7493 # 1950.
7494
7495# http://en.wikipedia.org/wiki/Taiwanese_units_of_measurement
7496# says: "Volume measure in Taiwan is largely metric".
7497taijin kin # http://zh.wikipedia.org/wiki/台斤
7498tailiang 10 monme # http://zh.wikipedia.org/wiki/台斤
7499taiqian monme # http://zh.wikipedia.org/wiki/台制
7500!utf8
7501台斤 taijin # via Hanyu Pinyin romanizations
7502台兩 tailiang
7503台錢 taiqian
7504!endutf8
7505
7506#
7507# Australian unit
7508#
7509
7510australiasquare (10 ft)^2 # Used for house area
7511
7512
7513#
7514# A few German units as currently in use.
7515#
7516
7517zentner 50 kg
7518doppelzentner 2 zentner
7519pfund 500 g
7520
7521# The klafter, which was used in central Europe, was derived from the span of
7522# outstretched arms.
7523#
7524# https://en.wikipedia.org/wiki/Obsolete_Austrian_units_of_measurement
7525# https://www.llv.li/files/abi/klafter-m2-en.pdf
7526
7527austriaklafter 1.89648384 m # Exact definition, 23 July 1871
7528austriafoot 1|6 austriaklafter
7529prussiaklafter 1.88 m
7530prussiafoot 1|6 prussiaklafter
7531bavariaklafter 1.751155 m
7532bavariafoot 1|6 bavariaklafter
7533hesseklafter 2.5 m
7534hessefoot 1|6 hesseklafter
7535switzerlandklafter metricklafter
7536switzerlandfoot 1|6 switzerlandklafter
7537swissklafter switzerlandklafter
7538swissfoot 1|6 swissklafter
7539metricklafter 1.8 m
7540
7541austriayoke 8 austriaklafter * 200 austriaklafter
7542
7543liechtensteinsquareklafter 3.596652 m^2 # Used until 2017 to measure land area
7544liechtensteinklafter sqrt(liechtensteinsquareklafter)
7545
7546# The klafter was also used to measure volume of wood, generally being a stack
7547# of wood one klafter wide, one klafter long, with logs 3 feet (half a klafter)
7548# in length
7549
7550prussiawoodklafter 0.5 prussiaklafter^3
7551austriawoodklafter 0.5 austriaklafter^3
7552festmeter m^3 # modern measure of wood, solid cube
7553raummeter 0.7 festmeter # Air space between the logs, stacked
7554schuettraummeter 0.65 raummeter # A cubic meter volume of split and cut
7555 # firewood in a loose, unordered
7556 # pile, not stacked. This is called
7557 # "tipped".
7558!utf8
7559schüttraummeter schuettraummeter
7560!endutf8
7561
7562
7563#
7564# Swedish (Sweden) pre-metric units of 1739.
7565# The metric system was adopted in 1878.
7566# https://sv.wikipedia.org/wiki/Verkm%C3%A5tt
7567#
7568
7569verklinje 2.0618125 mm
7570verktum 12 verklinje
7571kvarter 6 verktum
7572fot 2 kvarter
7573aln 2 fot
7574famn 3 aln
7575
7576#
7577# Some traditional Russian measures
7578#
7579# If you would like to help expand this section and understand
7580# cyrillic transliteration, let me know. These measures are meant to
7581# reflect common usage, e.g. in translated literature.
7582#
7583
7584dessiatine 2400 sazhen^2 # Land measure
7585dessjatine dessiatine
7586
7587funt 409.51718 grams # similar to pound
7588zolotnik 1|96 funt # used for precious metal measure
7589pood 40 funt # common in agricultural measure
7590
7591arshin (2 + 1|3) feet
7592sazhen 3 arshin # analogous to fathom
7593verst 500 sazhen # of similar use to mile
7594versta verst
7595borderverst 1000 sazhen
7596russianmile 7 verst
7597
7598
7599
7600
7601#
7602# Old French distance measures, from French Weights and Measures
7603# Before the Revolution by Zupko
7604#
7605
7606frenchfoot 144|443.296 m # pied de roi, the standard of Paris.
7607pied frenchfoot # Half of the hashimicubit,
7608frenchfeet frenchfoot # instituted by Charlemagne.
7609frenchinch 1|12 frenchfoot # This exact definition comes from
7610frenchthumb frenchinch # a law passed on 10 Dec 1799 which
7611pouce frenchthumb # fixed the meter at
7612 # 3 frenchfeet + 11.296 lignes.
7613frenchline 1|12 frenchinch # This is supposed to be the size
7614ligne frenchline # of the average barleycorn
7615frenchpoint 1|12 frenchline
7616toise 6 frenchfeet
7617arpent 180^2 pied^2 # The arpent is 100 square perches,
7618 # but the perche seems to vary a lot
7619 # and can be 18 feet, 20 feet, or 22
7620 # feet. This measure was described
7621 # as being in common use in Canada in
7622 # 1934 (Websters 2nd). The value
7623 # given here is the Paris standard
7624 # arpent.
7625frenchgrain 1|18827.15 kg # Weight of a wheat grain, hence
7626 # smaller than the British grain.
7627frenchpound 9216 frenchgrain
7628
7629#
7630# Before the Imperial Weights and Measures Act of 1824, various different
7631# weights and measures were in use in different places.
7632#
7633
7634# Scots linear measure
7635
7636scotsinch 1.00540054 UKinch
7637scotslink 1|100 scotschain
7638scotsfoot 12 scotsinch
7639scotsfeet scotsfoot
7640scotsell 37 scotsinch
7641scotsfall 6 scotsell
7642scotschain 4 scotsfall
7643scotsfurlong 10 scotschain
7644scotsmile 8 scotsfurlong
7645
7646# Scots area measure
7647
7648scotsrood 40 scotsfall^2
7649scotsacre 4 scotsrood
7650
7651# Irish linear measure
7652
7653irishinch UKinch
7654irishpalm 3 irishinch
7655irishspan 3 irishpalm
7656irishfoot 12 irishinch
7657irishfeet irishfoot
7658irishcubit 18 irishinch
7659irishyard 3 irishfeet
7660irishpace 5 irishfeet
7661irishfathom 6 irishfeet
7662irishpole 7 irishyard # Only these values
7663irishperch irishpole # are different from
7664irishchain 4 irishperch # the British Imperial
7665irishlink 1|100 irishchain # or English values for
7666irishfurlong 10 irishchain # these lengths.
7667irishmile 8 irishfurlong #
7668
7669# Irish area measure
7670
7671irishrood 40 irishpole^2
7672irishacre 4 irishrood
7673
7674# English wine capacity measures (Winchester measures)
7675
7676winepint 1|2 winequart
7677winequart 1|4 winegallon
7678winegallon 231 UKinch^3 # Sometimes called the Winchester Wine Gallon,
7679 # it was legalized in 1707 by Queen Anne, and
7680 # given the definition of 231 cubic inches. It
7681 # had been in use for a while as 8 pounds of wine
7682 # using a merchant's pound, but the definition of
7683 # the merchant's pound had become uncertain. A
7684 # pound of 15 tower ounces (6750 grains) had been
7685 # common, but then a pound of 15 troy ounces
7686 # (7200 grains) gained popularity. Because of
7687 # the switch in the value of the merchants pound,
7688 # the size of the wine gallon was uncertain in
7689 # the market, hence the official act in 1707.
7690 # The act allowed that a six inch tall cylinder
7691 # with a 7 inch diameter was a lawful wine
7692 # gallon. (This comes out to 230.9 in^3.)
7693 # Note also that in Britain a legal conversion
7694 # was established to the 1824 Imperial gallon
7695 # then taken as 277.274 in^3 so that the wine
7696 # gallon was 0.8331 imperial gallons. This is
7697 # 231.1 cubic inches (using the international
7698 # inch).
7699winerundlet 18 winegallon
7700winebarrel 31.5 winegallon
7701winetierce 42 winegallon
7702winehogshead 2 winebarrel
7703winepuncheon 2 winetierce
7704winebutt 2 winehogshead
7705winepipe winebutt
7706winetun 2 winebutt
7707
7708# English beer and ale measures used 1803-1824 and used for beer before 1688
7709
7710beerpint 1|2 beerquart
7711beerquart 1|4 beergallon
7712beergallon 282 UKinch^3
7713beerbarrel 36 beergallon
7714beerhogshead 1.5 beerbarrel
7715
7716# English ale measures used from 1688-1803 for both ale and beer
7717
7718alepint 1|2 alequart
7719alequart 1|4 alegallon
7720alegallon beergallon
7721alebarrel 34 alegallon
7722alehogshead 1.5 alebarrel
7723
7724# Scots capacity measure
7725
7726scotsgill 1|4 mutchkin
7727mutchkin 1|2 choppin
7728choppin 1|2 scotspint
7729scotspint 1|2 scotsquart
7730scotsquart 1|4 scotsgallon
7731scotsgallon 827.232 UKinch^3
7732scotsbarrel 8 scotsgallon
7733jug scotspint
7734
7735# Scots dry capacity measure
7736
7737scotswheatlippy 137.333 UKinch^3 # Also used for peas, beans, rye, salt
7738scotswheatlippies scotswheatlippy
7739scotswheatpeck 4 scotswheatlippy
7740scotswheatfirlot 4 scotswheatpeck
7741scotswheatboll 4 scotswheatfirlot
7742scotswheatchalder 16 scotswheatboll
7743
7744scotsoatlippy 200.345 UKinch^3 # Also used for barley and malt
7745scotsoatlippies scotsoatlippy
7746scotsoatpeck 4 scotsoatlippy
7747scotsoatfirlot 4 scotsoatpeck
7748scotsoatboll 4 scotsoatfirlot
7749scotsoatchalder 16 scotsoatboll
7750
7751# Scots Tron weight
7752
7753trondrop 1|16 tronounce
7754tronounce 1|20 tronpound
7755tronpound 9520 grain
7756tronstone 16 tronpound
7757
7758# Irish liquid capacity measure
7759
7760irishnoggin 1|4 irishpint
7761irishpint 1|2 irishquart
7762irishquart 1|2 irishpottle
7763irishpottle 1|2 irishgallon
7764irishgallon 217.6 UKinch^3
7765irishrundlet 18 irishgallon
7766irishbarrel 31.5 irishgallon
7767irishtierce 42 irishgallon
7768irishhogshead 2 irishbarrel
7769irishpuncheon 2 irishtierce
7770irishpipe 2 irishhogshead
7771irishtun 2 irishpipe
7772
7773# Irish dry capacity measure
7774
7775irishpeck 2 irishgallon
7776irishbushel 4 irishpeck
7777irishstrike 2 irishbushel
7778irishdrybarrel 2 irishstrike
7779irishquarter 2 irishbarrel
7780
7781# English Tower weights, abolished in 1528
7782
7783towerpound 5400 grain
7784towerounce 1|12 towerpound
7785towerpennyweight 1|20 towerounce
7786towergrain 1|32 towerpennyweight
7787
7788# English Mercantile weights, used since the late 12th century
7789
7790mercpound 6750 grain
7791mercounce 1|15 mercpound
7792mercpennyweight 1|20 mercounce
7793
7794# English weights for lead
7795
7796leadstone 12.5 lb
7797fotmal 70 lb
7798leadwey 14 leadstone
7799fothers 12 leadwey
7800
7801# English Hay measure
7802
7803newhaytruss 60 lb # New and old here seem to refer to "new"
7804newhayload 36 newhaytruss # hay and "old" hay rather than a new unit
7805oldhaytruss 56 lb # and an old unit.
7806oldhayload 36 oldhaytruss
7807
7808# English wool measure
7809
7810woolclove 7 lb
7811woolstone 2 woolclove
7812wooltod 2 woolstone
7813woolwey 13 woolstone
7814woolsack 2 woolwey
7815woolsarpler 2 woolsack
7816woollast 6 woolsarpler
7817
7818#
7819# Ancient history units: There tends to be uncertainty in the definitions
7820# of the units in this section
7821# These units are from [11]
7822
7823# Roman measure. The Romans had a well defined distance measure, but their
7824# measures of weight were poor. They adopted local weights in different
7825# regions without distinguishing among them so that there are half a dozen
7826# different Roman "standard" weight systems.
7827
7828romanfoot 296 mm # There is some uncertainty in this definition
7829romanfeet romanfoot # from which all the other units are derived.
7830pes romanfoot # This value appears in numerous sources. In "The
7831pedes romanfoot # Roman Land Surveyors", Dilke gives 295.7 mm.
7832romaninch 1|12 romanfoot # The subdivisions of the Roman foot have the
7833romandigit 1|16 romanfoot # same names as the subdivisions of the pound,
7834romanpalm 1|4 romanfoot # but we can't have the names for different
7835romancubit 18 romaninch # units.
7836romanpace 5 romanfeet # Roman double pace (basic military unit)
7837passus romanpace
7838romanperch 10 romanfeet
7839stade 125 romanpaces
7840stadia stade
7841stadium stade
7842romanmile 8 stadia # 1000 paces
7843romanleague 1.5 romanmile
7844schoenus 4 romanmile
7845
7846# Other values for the Roman foot (from Dilke)
7847
7848earlyromanfoot 29.73 cm
7849pesdrusianus 33.3 cm # or 33.35 cm, used in Gaul & Germany in 1st c BC
7850lateromanfoot 29.42 cm
7851
7852# Roman areas
7853
7854actuslength 120 romanfeet # length of a Roman furrow
7855actus 120*4 romanfeet^2 # area of the furrow
7856squareactus 120^2 romanfeet^2 # actus quadratus
7857acnua squareactus
7858iugerum 2 squareactus
7859iugera iugerum
7860jugerum iugerum
7861jugera iugerum
7862heredium 2 iugera # heritable plot
7863heredia heredium
7864centuria 100 heredia
7865centurium centuria
7866
7867# Roman volumes
7868
7869sextarius 35.4 in^3 # Basic unit of Roman volume. As always,
7870sextarii sextarius # there is uncertainty. Six large Roman
7871 # measures survive with volumes ranging from
7872 # 34.4 in^3 to 39.55 in^3. Three of them
7873 # cluster around the size given here.
7874 #
7875 # But the values for this unit vary wildly
7876 # in other sources. One reference gives 0.547
7877 # liters, but then says the amphora is a
7878 # cubic Roman foot. This gives a value for the
7879 # sextarius of 0.540 liters. And the
7880 # encyclopedia Britannica lists 0.53 liters for
7881 # this unit. Both [7] and [11], which were
7882 # written by scholars of weights and measures,
7883 # give the value of 35.4 cubic inches.
7884cochlearia 1|48 sextarius
7885cyathi 1|12 sextarius
7886acetabula 1|8 sextarius
7887quartaria 1|4 sextarius
7888quartarius quartaria
7889heminae 1|2 sextarius
7890hemina heminae
7891cheonix 1.5 sextarii
7892
7893# Dry volume measures (usually)
7894
7895semodius 8 sextarius
7896semodii semodius
7897modius 16 sextarius
7898modii modius
7899
7900# Liquid volume measures (usually)
7901
7902congius 12 heminae
7903congii congius
7904amphora 8 congii
7905amphorae amphora # Also a dry volume measure
7906culleus 20 amphorae
7907quadrantal amphora
7908
7909# Roman weights
7910
7911libra 5052 grain # The Roman pound varied significantly
7912librae libra # from 4210 grains to 5232 grains. Most of
7913romanpound libra # the standards were obtained from the weight
7914uncia 1|12 libra # of particular coins. The one given here is
7915unciae uncia # based on the Gold Aureus of Augustus which
7916romanounce uncia # was in use from BC 27 to AD 296.
7917deunx 11 uncia
7918dextans 10 uncia
7919dodrans 9 uncia
7920bes 8 uncia
7921seprunx 7 uncia
7922semis 6 uncia
7923quincunx 5 uncia
7924triens 4 uncia
7925quadrans 3 uncia
7926sextans 2 uncia
7927sescuncia 1.5 uncia
7928semuncia 1|2 uncia
7929siscilius 1|4 uncia
7930sextula 1|6 uncia
7931semisextula 1|12 uncia
7932scriptulum 1|24 uncia
7933scrupula scriptulum
7934romanobol 1|2 scrupula
7935
7936romanaspound 4210 grain # Old pound based on bronze coinage, the
7937 # earliest money of Rome BC 338 to BC 268.
7938
7939# Egyptian length measure
7940
7941egyptianroyalcubit 20.63 in # plus or minus .2 in
7942egyptianpalm 1|7 egyptianroyalcubit
7943egyptiandigit 1|4 egyptianpalm
7944egyptianshortcubit 6 egyptianpalm
7945
7946doubleremen 29.16 in # Length of the diagonal of a square with
7947remendigit 1|40 doubleremen # side length of 1 royal egyptian cubit.
7948 # This is divided into 40 digits which are
7949 # not the same size as the digits based on
7950 # the royal cubit.
7951
7952# Greek length measures
7953
7954greekfoot 12.45 in # Listed as being derived from the
7955greekfeet greekfoot # Egyptian Royal cubit in [11]. It is
7956greekcubit 1.5 greekfoot # said to be 3|5 of a 20.75 in cubit.
7957pous greekfoot
7958podes greekfoot
7959orguia 6 greekfoot
7960greekfathom orguia
7961stadion 100 orguia
7962akaina 10 greekfeet
7963plethron 10 akaina
7964greekfinger 1|16 greekfoot
7965homericcubit 20 greekfingers # Elbow to end of knuckles.
7966shortgreekcubit 18 greekfingers # Elbow to start of fingers.
7967
7968ionicfoot 296 mm
7969doricfoot 326 mm
7970
7971olympiccubit 25 remendigit # These olympic measures were not as
7972olympicfoot 2|3 olympiccubit # common as the other greek measures.
7973olympicfinger 1|16 olympicfoot # They were used in agriculture.
7974olympicfeet olympicfoot
7975olympicdakylos olympicfinger
7976olympicpalm 1|4 olympicfoot
7977olympicpalestra olympicpalm
7978olympicspithame 3|4 foot
7979olympicspan olympicspithame
7980olympicbema 2.5 olympicfeet
7981olympicpace olympicbema
7982olympicorguia 6 olympicfeet
7983olympicfathom olympicorguia
7984olympiccord 60 olympicfeet
7985olympicamma olympiccord
7986olympicplethron 100 olympicfeet
7987olympicstadion 600 olympicfeet
7988
7989# Greek capacity measure
7990
7991greekkotyle 270 ml # This approximate value is obtained
7992xestes 2 greekkotyle # from two earthenware vessels that
7993khous 12 greekkotyle # were reconstructed from fragments.
7994metretes 12 khous # The kotyle is a day's corn ration
7995choinix 4 greekkotyle # for one man.
7996hekteos 8 choinix
7997medimnos 6 hekteos
7998
7999# Greek weight. Two weight standards were used, an Aegina standard based
8000# on the Beqa shekel and an Athens (attic) standard.
8001
8002aeginastater 192 grain # Varies up to 199 grain
8003aeginadrachmae 1|2 aeginastater
8004aeginaobol 1|6 aeginadrachmae
8005aeginamina 50 aeginastaters
8006aeginatalent 60 aeginamina # Supposedly the mass of a cubic foot
8007 # of water (whichever foot was in use)
8008
8009atticstater 135 grain # Varies 134-138 grain
8010atticdrachmae 1|2 atticstater
8011atticobol 1|6 atticdrachmae
8012atticmina 50 atticstaters
8013attictalent 60 atticmina # Supposedly the mass of a cubic foot
8014 # of water (whichever foot was in use)
8015
8016# "Northern" cubit and foot. This was used by the pre-Aryan civilization in
8017# the Indus valley. It was used in Mesopotamia, Egypt, North Africa, China,
8018# central and Western Europe until modern times when it was displaced by
8019# the metric system.
8020
8021northerncubit 26.6 in # plus/minus .2 in
8022northernfoot 1|2 northerncubit
8023
8024sumeriancubit 495 mm
8025kus sumeriancubit
8026sumerianfoot 2|3 sumeriancubit
8027
8028assyriancubit 21.6 in
8029assyrianfoot 1|2 assyriancubit
8030assyrianpalm 1|3 assyrianfoot
8031assyriansusi 1|20 assyrianpalm
8032susi assyriansusi
8033persianroyalcubit 7 assyrianpalm
8034
8035
8036# Arabic measures. The arabic standards were meticulously kept. Glass weights
8037# accurate to .2 grains were made during AD 714-900.
8038
8039hashimicubit 25.56 in # Standard of linear measure used
8040 # in Persian dominions of the Arabic
8041 # empire 7-8th cent. Is equal to two
8042 # French feet.
8043
8044blackcubit 21.28 in
8045arabicfeet 1|2 blackcubit
8046arabicfoot arabicfeet
8047arabicinch 1|12 arabicfoot
8048arabicmile 4000 blackcubit
8049
8050silverdirhem 45 grain # The weights were derived from these two
8051tradedirhem 48 grain # units with two identically named systems
8052 # used for silver and used for trade purposes
8053
8054silverkirat 1|16 silverdirhem
8055silverwukiyeh 10 silverdirhem
8056silverrotl 12 silverwukiyeh
8057arabicsilverpound silverrotl
8058
8059tradekirat 1|16 tradedirhem
8060tradewukiyeh 10 tradedirhem
8061traderotl 12 tradewukiyeh
8062arabictradepound traderotl
8063
8064# Miscellaneous ancient units
8065
8066parasang 3.5 mile # Persian unit of length usually thought
8067 # to be between 3 and 3.5 miles
8068biblicalcubit 21.8 in
8069hebrewcubit 17.58 in
8070li 10|27.8 mile # Chinese unit of length
8071 # 100 li is considered a day's march
8072liang 11|3 oz # Chinese weight unit
8073
8074
8075# Medieval time units. According to the OED, these appear in Du Cange
8076# by Papias.
8077
8078timepoint 1|5 hour # also given as 1|4
8079timeminute 1|10 hour
8080timeostent 1|60 hour
8081timeounce 1|8 timeostent
8082timeatom 1|47 timeounce
8083
8084# Given in [15], these subdivisions of the grain were supposedly used
8085# by jewelers. The mite may have been used but the blanc could not
8086# have been accurately measured.
8087
8088mite 1|20 grain
8089droit 1|24 mite
8090periot 1|20 droit
8091blanc 1|24 periot
8092
8093#
8094# Localization
8095#
8096
8097!var UNITS_ENGLISH US
8098hundredweight ushundredweight
8099ton uston
8100scruple apscruple
8101fluidounce usfluidounce
8102gallon usgallon
8103bushel usbushel
8104quarter quarterweight
8105cup uscup
8106tablespoon ustablespoon
8107teaspoon usteaspoon
8108dollar US$
8109cent $ 0.01
8110penny cent
8111minim minimvolume
8112pony ponyvolume
8113grand usgrand
8114firkin usfirkin
8115hogshead ushogshead
8116cable uscable
8117!endvar
8118
8119!var UNITS_ENGLISH GB
8120hundredweight brhundredweight
8121ton brton
8122scruple brscruple
8123fluidounce brfluidounce
8124gallon brgallon
8125bushel brbushel
8126quarter brquarter
8127chaldron brchaldron
8128cup brcup
8129teacup brteacup
8130tablespoon brtablespoon
8131teaspoon brteaspoon
8132dollar US$
8133cent $ 0.01
8134penny brpenny
8135minim minimnote
8136pony brpony
8137grand brgrand
8138firkin brfirkin
8139hogshead brhogshead
8140cable brcable
8141!endvar
8142
8143!varnot UNITS_ENGLISH GB US
8144!message Unknown value for environment variable UNITS_ENGLISH. Should be GB or US.
8145!endvar
8146
8147
8148!utf8
8149⅛- 1|8
8150¼- 1|4
8151⅜- 3|8
8152½- 1|2
8153⅝- 5|8
8154¾- 3|4
8155⅞- 7|8
8156⅙- 1|6
8157⅓- 1|3
8158⅔- 2|3
8159⅚- 5|6
8160⅕- 1|5
8161⅖- 2|5
8162⅗- 3|5
8163⅘- 4|5
8164# U+2150- 1|7 For some reason these characters are getting
8165# U+2151- 1|9 flagged as invalid UTF8.
8166# U+2152- 1|10
8167#⅐- 1|7 # fails under MacOS
8168#⅑- 1|9 # fails under MacOS
8169#⅒- 1|10 # fails under MacOS
8170ℯ exp(1) # U+212F, base of natural log
8171µ- micro # micro sign U+00B5
8172μ- micro # small mu U+03BC
8173ångström angstrom
8174Å angstrom # angstrom symbol U+212B
8175Å angstrom # A with ring U+00C5
8176röntgen roentgen
8177°C degC
8178°F degF
8179°K K # °K is incorrect notation
8180°R degR
8181° degree
8182℃ degC
8183℉ degF
8184K K # Kelvin symbol, U+212A
8185ℓ liter # unofficial abbreviation used in some places
8186Ω ohm # Ohm symbol U+2126
8187Ω ohm # Greek capital omega U+03A9
8188℧ mho
8189G₀ G0
8190H₀ H0
8191Z₀ Z0
8192a₀ a0
8193n₀ n0
8194ε₀ epsilon0
8195μ₀ mu0
8196Φ₀ Phi0
8197R∞ Rinfinity
8198R_∞ Rinfinity
8199λ_C lambda_C
8200μ_B mu_B
8201ν_133Cs nu_133Cs
8202ʒ dram # U+0292
8203℈ scruple
8204℥ ounce
8205℔ lb
8206ℎ h
8207ℏ hbar
8208τ tau
8209π pi # Greek letter pi
8210𝜋 pi # mathematical italic small pi
8211α alpha
8212σ sigma
8213‰ 1|1000
8214‱ 1|10000
8215′ ' # U+2032
8216″ " # U+2033
8217
8218#
8219# Unicode currency symbols
8220#
8221
8222¢ cent
8223£ britainpound
8224¥ japanyen
8225€ euro
8226₩ southkoreawon
8227₪ israelnewshekel
8228₤ lira
8229# ₺ turkeylira # fails under MacOS
8230₨ rupee # unofficial legacy rupee sign
8231# ₹ indiarupee # official rupee sign # MacOS fail
8232#؋ afghanafghani # fails under MacOS
8233฿ thailandbaht
8234₡ costaricacolon
8235₣ francefranc
8236₦ nigerianaira
8237₧ spainpeseta
8238₫ vietnamdong
8239₭ laokip
8240₮ mongoliatugrik
8241₯ greecedrachma
8242₱ philippinepeso
8243# ₲ paraguayguarani # fails under MacOS
8244#₴ ukrainehryvnia # fails under MacOS
8245#₵ ghanacedi # fails under MacOS
8246#₸ kazakhstantenge # fails under MacOS
8247#₼ azerbaijanmanat # fails under MacOS
8248#₽ russiaruble # fails under MacOS
8249#₾ georgialari # fails under MacOS
8250﷼ iranrial
8251﹩ $
8252¢ ¢
8253£ £
8254¥ ¥
8255₩ ₩
8256
8257#
8258# Square Unicode symbols starting at U+3371
8259#
8260
8261㍱ hPa
8262㍲ da
8263㍳ au
8264㍴ bar
8265# ㍵ oV???
8266㍶ pc
8267#㍷ dm invalid on Mac
8268#㍸ dm^2 invalid on Mac
8269#㍹ dm^3 invalid on Mac
8270㎀ pA
8271㎁ nA
8272㎂ µA
8273㎃ mA
8274㎄ kA
8275㎅ kB
8276㎆ MB
8277㎇ GB
8278㎈ cal
8279㎉ kcal
8280㎊ pF
8281㎋ nF
8282㎌ µF
8283㎍ µg
8284㎎ mg
8285㎏ kg
8286㎐ Hz
8287㎑ kHz
8288㎒ MHz
8289㎓ GHz
8290㎔ THz
8291㎕ µL
8292㎖ mL
8293㎗ dL
8294㎘ kL
8295㎙ fm
8296㎚ nm
8297㎛ µm
8298㎜ mm
8299㎝ cm
8300㎞ km
8301㎟ mm^2
8302㎠ cm^2
8303㎡ m^2
8304㎢ km^2
8305㎣ mm^3
8306㎤ cm^3
8307㎥ m^3
8308㎦ km^3
8309㎧ m/s
8310㎨ m/s^2
8311㎩ Pa
8312㎪ kPa
8313㎫ MPa
8314㎬ GPa
8315㎭ rad
8316㎮ rad/s
8317㎯ rad/s^2
8318㎰ ps
8319㎱ ns
8320㎲ µs
8321㎳ ms
8322㎴ pV
8323㎵ nV
8324㎶ µV
8325㎷ mV
8326㎸ kV
8327㎹ MV
8328㎺ pW
8329㎻ nW
8330㎼ µW
8331㎽ mW
8332㎾ kW
8333㎿ MW
8334㏀ kΩ
8335㏁ MΩ
8336㏃ Bq
8337㏄ cc
8338㏅ cd
8339㏆ C/kg
8340㏈() dB
8341㏉ Gy
8342㏊ ha
8343# ㏋ HP??
8344㏌ in
8345# ㏍ KK??
8346# ㏎ KM???
8347㏏ kt
8348㏐ lm
8349# ㏑ ln
8350# ㏒ log
8351㏓ lx
8352㏔ mb
8353㏕ mil
8354㏖ mol
8355㏗() pH
8356㏙ ppm
8357# ㏚ PR???
8358㏛ sr
8359㏜ Sv
8360㏝ Wb
8361#㏞ V/m Invalid on Mac
8362#㏟ A/m Invalid on Mac
8363#㏿ gal Invalid on Mac
8364
8365!endutf8
8366
8367############################################################################
8368#
8369# Unit list aliases
8370#
8371# These provide a shorthand for conversions to unit lists.
8372#
8373############################################################################
8374
8375!unitlist uswt lb;oz
8376!unitlist hms hr;min;sec
8377!unitlist time year;day;hr;min;sec
8378!unitlist dms deg;arcmin;arcsec
8379!unitlist ftin ft;in;1|8 in
8380!unitlist inchfine in;1|8 in;1|16 in;1|32 in;1|64 in
8381!unitlist usvol cup;3|4 cup;2|3 cup;1|2 cup;1|3 cup;1|4 cup;\
8382 tbsp;tsp;1|2 tsp;1|4 tsp;1|8 tsp
8383
8384############################################################################
8385#
8386# The following units were in the Unix units database but do not appear in
8387# this file:
8388#
8389# wey used for cheese, salt and other goods. Measured mass or
8390# waymass volume depending on what was measured and where the measuring
8391# took place. A wey of cheese ranged from 200 to 324 pounds.
8392#
8393# sack No precise definition
8394#
8395# spindle The length depends on the type of yarn
8396#
8397# block Defined variously on different computer systems
8398#
8399# erlang A unit of telephone traffic defined variously.
8400# Omitted because there are no other units for this
8401# dimension. Is this true? What about CCS = 1/36 erlang?
8402# Erlang is supposed to be dimensionless. One erlang means
8403# a single channel occupied for one hour.
8404#
8405############################################################################
8406#
8407# The following have been suggested or considered and deemed out of scope.
8408# They will not be added to GNU units.
8409#
8410# Conversions between different calendar systems used in different countries or
8411# different historical periods are out of scope for units and will not be added.
8412#
8413# Wind chill and heat index cannot be handled because they are bivarite,
8414# with dependence on both the temperature and wind speed or humidity.
8415#
8416# Plain english text output like "one hectare is equivalent to one hundred
8417# million square centimeters" is out of scope.
8418#