si

package
v0.0.2 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Nov 1, 2026 License: Apache-2.0 Imports: 1 Imported by: 2 modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Overview

Package si holds the physical constants celestial uses and the si's decimal prefixes. The five constants here, Planck, Speed, Charge, Boltzmann and Avogadro, are si defining constants: exact, not measured, each typed here once.

A measured constant, such as G, is read from celestial's research data by name, through a function here.

Index

Constants

View Source
const (
	// Planck is h, in joule seconds. Defined by the si since 2019.
	Planck = 6.62607015e-34
	// Speed is c, the speed of light, in metres a second. Defined by
	// the si since 1983.
	Speed = 299792458.0
	// Charge is e, the charge of one electron, in coulombs. Defined by
	// the si since 2019.
	Charge = 1.602176634e-19
	// Boltzmann is k, in joules a kelvin. Defined by the si since 2019.
	Boltzmann = 1.380649e-23
	// Avogadro is the number of things in a mole. Defined by the si
	// since 2019.
	Avogadro = 6.02214076e23
)

The si's defining constants, as the SI Brochure, 9th edition (BIPM, 2019), table 1, fixes them.

Variables

This section is empty.

Functions

func Centi

func Centi(unit float64) float64

Centi is a hundredth of the unit: the centimetre of cgs units.

func Giga

func Giga(unit float64) float64

Giga is a thousand million of the unit.

func Gravitation

func Gravitation() float64

Gravitation is G, the newtonian constant of gravitation, in cubic metres a kilogram a second squared, as celestial's research data holds it.

It is measured, not defined: the 2022 value of the Committee on Data of the International Science Council, good to 2.2 parts in 100000.

func Kilo

func Kilo(unit float64) float64

Kilo is a thousand of the unit.

func Mega

func Mega(unit float64) float64

Mega is a million of the unit: a megaparsec is Mega(length.Parsec).

func Micro

func Micro(unit float64) float64

Micro is a millionth of the unit: a micron is Micro(length.Metre).

func Milli

func Milli(unit float64) float64

Milli is a thousandth of the unit: a millijansky is a Milli of a jansky.

func Nano

func Nano(unit float64) float64

Nano is a thousand-millionth of the unit.

func Tera

func Tera(unit float64) float64

Tera is a million million of the unit.

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL