Documentation
¶
Overview ¶
Package length holds the lengths physics and astronomy are measured in, each in metres and each named once. Multiples come from the si's prefixes: a kiloparsec is si.Kilo(Parsec), a micron is si.Micro(Metre).
Every length here but the Planck length is exact, by a definition cited beside it.
Index ¶
Constants ¶
const ( // Metre is the si's unit of length. Defined by the si since 1983, // by the speed of light: the distance light travels in 1/299792458 // of a second. Metre = 1.0 // Angstrom is a unit outside the si that x-ray papers still use. // Defined as 1e-10 metres by the SI Brochure, 9th edition, section // 4, table 8, read on 2026-10-31: "1 Å = 0.1 nm = 10−10 m". ISO // 80000-3, also named here before, is paid and was not read. Angstrom = 1e-10 // AU is the astronomical unit. Defined in metres by the IAU in 2012 // (resolution B2), as the IAU's 2015 resolutions restate it in B3's // endnote 4, read on 2026-10-31. It began as the earth's mean distance // from the sun and is now a definition. AU = 149597870700.0 // Parsec is the distance at which one AU subtends one arcsecond: // 648000/pi AU, defined by the IAU's 2015 resolution B2, footnote 4, // read on 2026-10-31. 648000 is the arcseconds in half a circle. Parsec = arcsecondsInHalfACircle / math.Pi * AU // LightYear is the distance light travels in a Julian year: c times // 365.25 days of 86400 seconds. A convention whose two terms are each // exact, c by the si and the julian year as aoki and the circular // count it, so there is no measured figure in it to read. LightYear = si.Speed * julianYear )
The lengths, in metres.
Variables ¶
This section is empty.
Functions ¶
func PlanckLength ¶
func PlanckLength() float64
PlanckLength is sqrt(hbar G / c^3), about 1.616e-35 metres. It is the one length here that is measured, not defined: hbar and c are exact, but G carries the uncertainty si.Gravitation states, and the Planck length inherits half of it.
Types ¶
This section is empty.