Blame doc/const.rst

Packit 67cb25
.. index::
Packit 67cb25
   single: physical constants
Packit 67cb25
   single: constants, physical
Packit 67cb25
   single: conversion of units
Packit 67cb25
   single: units, conversion of
Packit 67cb25
Packit 67cb25
******************
Packit 67cb25
Physical Constants
Packit 67cb25
******************
Packit 67cb25
Packit 67cb25
This chapter describes macros for the values of physical constants, such
Packit 67cb25
as the speed of light, :math:`c`, and gravitational constant, :math:`G`.
Packit 67cb25
The values are available in different unit systems, including the
Packit 67cb25
standard MKSA system (meters, kilograms, seconds, amperes) and the CGSM
Packit 67cb25
system (centimeters, grams, seconds, gauss), which is commonly used in
Packit 67cb25
Astronomy.
Packit 67cb25
Packit 67cb25
The definitions of constants in the MKSA system are available in the file
Packit 67cb25
:file:`gsl_const_mksa.h`.  The constants in the CGSM system are defined in
Packit 67cb25
:file:`gsl_const_cgsm.h`.  Dimensionless constants, such as the fine
Packit 67cb25
structure constant, which are pure numbers are defined in
Packit 67cb25
:file:`gsl_const_num.h`.
Packit 67cb25
Packit 67cb25
The full list of constants is described briefly below.  Consult the
Packit 67cb25
header files themselves for the values of the constants used in the
Packit 67cb25
library.
Packit 67cb25
Packit 67cb25
.. index::
Packit 67cb25
   single: fundamental constants
Packit 67cb25
   single: constants, fundamental
Packit 67cb25
Packit 67cb25
Fundamental Constants
Packit 67cb25
=====================
Packit 67cb25
Packit 67cb25
.. macro:: GSL_CONST_MKSA_SPEED_OF_LIGHT
Packit 67cb25
Packit 67cb25
   The speed of light in vacuum, :math:`c`.
Packit 67cb25
Packit 67cb25
.. macro:: GSL_CONST_MKSA_VACUUM_PERMEABILITY
Packit 67cb25
Packit 67cb25
   The permeability of free space, :math:`\mu_0`. This constant is defined
Packit 67cb25
   in the MKSA system only.
Packit 67cb25
Packit 67cb25
.. macro:: GSL_CONST_MKSA_VACUUM_PERMITTIVITY
Packit 67cb25
Packit 67cb25
   The permittivity of free space, :math:`\epsilon_0`.  This constant is
Packit 67cb25
   defined in the MKSA system only.
Packit 67cb25
Packit 67cb25
.. macro:: GSL_CONST_MKSA_PLANCKS_CONSTANT_H
Packit 67cb25
Packit 67cb25
   Planck's constant, :math:`h`.
Packit 67cb25
Packit 67cb25
.. macro:: GSL_CONST_MKSA_PLANCKS_CONSTANT_HBAR
Packit 67cb25
Packit 67cb25
   Planck's constant divided by :math:`2\pi`, :math:`\hbar`.
Packit 67cb25
Packit 67cb25
.. macro:: GSL_CONST_NUM_AVOGADRO
Packit 67cb25
Packit 67cb25
   Avogadro's number, :math:`N_a`.
Packit 67cb25
Packit 67cb25
.. macro:: GSL_CONST_MKSA_FARADAY
Packit 67cb25
Packit 67cb25
   The molar charge of 1 Faraday.
Packit 67cb25
Packit 67cb25
.. macro:: GSL_CONST_MKSA_BOLTZMANN
Packit 67cb25
Packit 67cb25
   The Boltzmann constant, :math:`k`.
Packit 67cb25
Packit 67cb25
.. macro:: GSL_CONST_MKSA_MOLAR_GAS
Packit 67cb25
Packit 67cb25
   The molar gas constant, :math:`R_0`.
Packit 67cb25
Packit 67cb25
.. macro:: GSL_CONST_MKSA_STANDARD_GAS_VOLUME
Packit 67cb25
Packit 67cb25
   The standard gas volume, :math:`V_0`.
Packit 67cb25
Packit 67cb25
.. macro:: GSL_CONST_MKSA_STEFAN_BOLTZMANN_CONSTANT
Packit 67cb25
Packit 67cb25
   The Stefan-Boltzmann radiation constant, :math:`\sigma`.
Packit 67cb25
Packit 67cb25
.. macro:: GSL_CONST_MKSA_GAUSS
Packit 67cb25
Packit 67cb25
   The magnetic field of 1 Gauss.
Packit 67cb25
Packit 67cb25
.. index:: astronomical constants
Packit 67cb25
Packit 67cb25
Astronomy and Astrophysics
Packit 67cb25
==========================
Packit 67cb25
Packit 67cb25
.. macro:: GSL_CONST_MKSA_ASTRONOMICAL_UNIT
Packit 67cb25
Packit 67cb25
   The length of 1 astronomical unit (mean earth-sun distance), :math:`au`.
Packit 67cb25
Packit 67cb25
.. macro:: GSL_CONST_MKSA_GRAVITATIONAL_CONSTANT
Packit 67cb25
Packit 67cb25
   The gravitational constant, :math:`G`.
Packit 67cb25
Packit 67cb25
.. macro:: GSL_CONST_MKSA_LIGHT_YEAR
Packit 67cb25
Packit 67cb25
   The distance of 1 light-year, :math:`ly`.
Packit 67cb25
Packit 67cb25
.. macro:: GSL_CONST_MKSA_PARSEC
Packit 67cb25
Packit 67cb25
   The distance of 1 parsec, :math:`pc`.
Packit 67cb25
Packit 67cb25
.. macro:: GSL_CONST_MKSA_GRAV_ACCEL
Packit 67cb25
Packit 67cb25
   The standard gravitational acceleration on Earth, :math:`g`.
Packit 67cb25
Packit 67cb25
.. macro:: GSL_CONST_MKSA_SOLAR_MASS
Packit 67cb25
Packit 67cb25
   The mass of the Sun.
Packit 67cb25
Packit 67cb25
.. index::
Packit 67cb25
   single: atomic physics, constants
Packit 67cb25
   single: nuclear physics, constants
Packit 67cb25
Packit 67cb25
Atomic and Nuclear Physics
Packit 67cb25
==========================
Packit 67cb25
Packit 67cb25
.. macro:: GSL_CONST_MKSA_ELECTRON_CHARGE
Packit 67cb25
Packit 67cb25
   The charge of the electron, :math:`e`.
Packit 67cb25
Packit 67cb25
.. macro:: GSL_CONST_MKSA_ELECTRON_VOLT
Packit 67cb25
Packit 67cb25
   The energy of 1 electron volt, :math:`eV`.
Packit 67cb25
Packit 67cb25
.. macro:: GSL_CONST_MKSA_UNIFIED_ATOMIC_MASS
Packit 67cb25
Packit 67cb25
   The unified atomic mass, :math:`amu`.
Packit 67cb25
Packit 67cb25
.. macro:: GSL_CONST_MKSA_MASS_ELECTRON
Packit 67cb25
Packit 67cb25
   The mass of the electron, :math:`m_e`.
Packit 67cb25
Packit 67cb25
.. macro:: GSL_CONST_MKSA_MASS_MUON
Packit 67cb25
Packit 67cb25
   The mass of the muon, :math:`m_\mu`.
Packit 67cb25
Packit 67cb25
.. macro:: GSL_CONST_MKSA_MASS_PROTON
Packit 67cb25
Packit 67cb25
   The mass of the proton, :math:`m_p`.
Packit 67cb25
Packit 67cb25
.. macro:: GSL_CONST_MKSA_MASS_NEUTRON
Packit 67cb25
Packit 67cb25
   The mass of the neutron, :math:`m_n`.
Packit 67cb25
Packit 67cb25
.. macro:: GSL_CONST_NUM_FINE_STRUCTURE
Packit 67cb25
Packit 67cb25
   The electromagnetic fine structure constant :math:`\alpha`.
Packit 67cb25
Packit 67cb25
.. macro:: GSL_CONST_MKSA_RYDBERG
Packit 67cb25
Packit 67cb25
   The Rydberg constant, :math:`Ry`, in units of energy.  This is related to
Packit 67cb25
   the Rydberg inverse wavelength :math:`R_\infty` by :math:`Ry = h c R_\infty`.
Packit 67cb25
Packit 67cb25
.. macro:: GSL_CONST_MKSA_BOHR_RADIUS
Packit 67cb25
Packit 67cb25
   The Bohr radius, :math:`a_0`.
Packit 67cb25
Packit 67cb25
.. macro:: GSL_CONST_MKSA_ANGSTROM
Packit 67cb25
Packit 67cb25
   The length of 1 angstrom.
Packit 67cb25
Packit 67cb25
.. macro:: GSL_CONST_MKSA_BARN
Packit 67cb25
Packit 67cb25
   The area of 1 barn.
Packit 67cb25
Packit 67cb25
.. macro:: GSL_CONST_MKSA_BOHR_MAGNETON
Packit 67cb25
Packit 67cb25
   The Bohr Magneton, :math:`\mu_B`.
Packit 67cb25
Packit 67cb25
.. macro:: GSL_CONST_MKSA_NUCLEAR_MAGNETON
Packit 67cb25
Packit 67cb25
   The Nuclear Magneton, :math:`\mu_N`.
Packit 67cb25
Packit 67cb25
.. macro:: GSL_CONST_MKSA_ELECTRON_MAGNETIC_MOMENT
Packit 67cb25
Packit 67cb25
   The absolute value of the magnetic moment of the electron, :math:`\mu_e`.
Packit 67cb25
   The physical magnetic moment of the electron is negative.
Packit 67cb25
Packit 67cb25
.. macro:: GSL_CONST_MKSA_PROTON_MAGNETIC_MOMENT
Packit 67cb25
Packit 67cb25
   The magnetic moment of the proton, :math:`\mu_p`.
Packit 67cb25
Packit 67cb25
.. macro:: GSL_CONST_MKSA_THOMSON_CROSS_SECTION
Packit 67cb25
Packit 67cb25
   The Thomson cross section, :math:`\sigma_T`.
Packit 67cb25
Packit 67cb25
.. macro:: GSL_CONST_MKSA_DEBYE
Packit 67cb25
Packit 67cb25
   The electric dipole moment of 1 Debye, :math:`D`.
Packit 67cb25
Packit 67cb25
.. index:: time units
Packit 67cb25
Packit 67cb25
Measurement of Time
Packit 67cb25
===================
Packit 67cb25
Packit 67cb25
.. macro:: GSL_CONST_MKSA_MINUTE
Packit 67cb25
Packit 67cb25
   The number of seconds in 1 minute.
Packit 67cb25
Packit 67cb25
.. macro:: GSL_CONST_MKSA_HOUR
Packit 67cb25
Packit 67cb25
   The number of seconds in 1 hour.
Packit 67cb25
Packit 67cb25
.. macro:: GSL_CONST_MKSA_DAY
Packit 67cb25
Packit 67cb25
   The number of seconds in 1 day.
Packit 67cb25
Packit 67cb25
.. macro:: GSL_CONST_MKSA_WEEK
Packit 67cb25
Packit 67cb25
   The number of seconds in 1 week.
Packit 67cb25
Packit 67cb25
.. index::
Packit 67cb25
   single: imperial units
Packit 67cb25
   single: units, imperial
Packit 67cb25
Packit 67cb25
Imperial Units
Packit 67cb25
==============
Packit 67cb25
Packit 67cb25
.. macro:: GSL_CONST_MKSA_INCH
Packit 67cb25
Packit 67cb25
   The length of 1 inch.
Packit 67cb25
Packit 67cb25
.. macro:: GSL_CONST_MKSA_FOOT
Packit 67cb25
Packit 67cb25
   The length of 1 foot.
Packit 67cb25
Packit 67cb25
.. macro:: GSL_CONST_MKSA_YARD
Packit 67cb25
Packit 67cb25
   The length of 1 yard.
Packit 67cb25
Packit 67cb25
.. macro:: GSL_CONST_MKSA_MILE
Packit 67cb25
Packit 67cb25
   The length of 1 mile.
Packit 67cb25
Packit 67cb25
.. macro:: GSL_CONST_MKSA_MIL
Packit 67cb25
Packit 67cb25
   The length of 1 mil (1/1000th of an inch).
Packit 67cb25
Packit 67cb25
.. index:: nautical units
Packit 67cb25
Packit 67cb25
Speed and Nautical Units
Packit 67cb25
========================
Packit 67cb25
Packit 67cb25
.. macro:: GSL_CONST_MKSA_KILOMETERS_PER_HOUR
Packit 67cb25
Packit 67cb25
   The speed of 1 kilometer per hour.
Packit 67cb25
Packit 67cb25
.. macro:: GSL_CONST_MKSA_MILES_PER_HOUR
Packit 67cb25
Packit 67cb25
   The speed of 1 mile per hour.
Packit 67cb25
Packit 67cb25
.. macro:: GSL_CONST_MKSA_NAUTICAL_MILE
Packit 67cb25
Packit 67cb25
   The length of 1 nautical mile.
Packit 67cb25
Packit 67cb25
.. macro:: GSL_CONST_MKSA_FATHOM
Packit 67cb25
Packit 67cb25
   The length of 1 fathom.
Packit 67cb25
Packit 67cb25
.. macro:: GSL_CONST_MKSA_KNOT
Packit 67cb25
Packit 67cb25
   The speed of 1 knot.
Packit 67cb25
Packit 67cb25
.. index:: printers units
Packit 67cb25
Packit 67cb25
Printers Units
Packit 67cb25
==============
Packit 67cb25
Packit 67cb25
.. macro:: GSL_CONST_MKSA_POINT
Packit 67cb25
Packit 67cb25
   The length of 1 printer's point (1/72 inch).
Packit 67cb25
Packit 67cb25
.. macro:: GSL_CONST_MKSA_TEXPOINT
Packit 67cb25
Packit 67cb25
   The length of 1 TeX point (1/72.27 inch).
Packit 67cb25
Packit 67cb25
.. index:: volume units
Packit 67cb25
Packit 67cb25
Volume, Area and Length
Packit 67cb25
=======================
Packit 67cb25
Packit 67cb25
.. macro:: GSL_CONST_MKSA_MICRON
Packit 67cb25
Packit 67cb25
   The length of 1 micron.
Packit 67cb25
Packit 67cb25
.. macro:: GSL_CONST_MKSA_HECTARE
Packit 67cb25
Packit 67cb25
   The area of 1 hectare.
Packit 67cb25
Packit 67cb25
.. macro:: GSL_CONST_MKSA_ACRE
Packit 67cb25
Packit 67cb25
   The area of 1 acre.
Packit 67cb25
Packit 67cb25
.. macro:: GSL_CONST_MKSA_LITER
Packit 67cb25
Packit 67cb25
   The volume of 1 liter.
Packit 67cb25
Packit 67cb25
.. macro:: GSL_CONST_MKSA_US_GALLON
Packit 67cb25
Packit 67cb25
   The volume of 1 US gallon.
Packit 67cb25
Packit 67cb25
.. macro:: GSL_CONST_MKSA_CANADIAN_GALLON
Packit 67cb25
Packit 67cb25
   The volume of 1 Canadian gallon.
Packit 67cb25
Packit 67cb25
.. macro:: GSL_CONST_MKSA_UK_GALLON
Packit 67cb25
Packit 67cb25
   The volume of 1 UK gallon.
Packit 67cb25
Packit 67cb25
.. macro:: GSL_CONST_MKSA_QUART
Packit 67cb25
Packit 67cb25
   The volume of 1 quart.
Packit 67cb25
Packit 67cb25
.. macro:: GSL_CONST_MKSA_PINT
Packit 67cb25
Packit 67cb25
   The volume of 1 pint.
Packit 67cb25
Packit 67cb25
.. @node Cookery
Packit 67cb25
.. @section Cookery
Packit 67cb25
.. @commentindex cookery units
Packit 67cb25
Packit 67cb25
.. @table @commentode
Packit 67cb25
.. @item GSL_CONST_MKSA_CUP
Packit 67cb25
.. The volume of 1 cup.
Packit 67cb25
Packit 67cb25
.. @item GSL_CONST_MKSA_FLUID_OUNCE
Packit 67cb25
.. The volume of 1 fluid ounce.
Packit 67cb25
Packit 67cb25
.. @item GSL_CONST_MKSA_TABLESPOON
Packit 67cb25
.. The volume of 1 tablespoon.
Packit 67cb25
Packit 67cb25
.. @item GSL_CONST_MKSA_TEASPOON
Packit 67cb25
.. The volume of 1 teaspoon.
Packit 67cb25
.. @end table
Packit 67cb25
Packit 67cb25
.. index::
Packit 67cb25
   single: mass, units of
Packit 67cb25
   single: weight, units of
Packit 67cb25
Packit 67cb25
Mass and Weight
Packit 67cb25
===============
Packit 67cb25
Packit 67cb25
.. macro:: GSL_CONST_MKSA_POUND_MASS
Packit 67cb25
Packit 67cb25
   The mass of 1 pound.
Packit 67cb25
Packit 67cb25
.. macro:: GSL_CONST_MKSA_OUNCE_MASS
Packit 67cb25
Packit 67cb25
   The mass of 1 ounce.
Packit 67cb25
Packit 67cb25
.. macro:: GSL_CONST_MKSA_TON
Packit 67cb25
Packit 67cb25
   The mass of 1 ton.
Packit 67cb25
Packit 67cb25
.. macro:: GSL_CONST_MKSA_METRIC_TON
Packit 67cb25
Packit 67cb25
   The mass of 1 metric ton (1000 kg).
Packit 67cb25
Packit 67cb25
.. macro:: GSL_CONST_MKSA_UK_TON
Packit 67cb25
Packit 67cb25
   The mass of 1 UK ton.
Packit 67cb25
Packit 67cb25
.. macro:: GSL_CONST_MKSA_TROY_OUNCE
Packit 67cb25
Packit 67cb25
   The mass of 1 troy ounce.
Packit 67cb25
Packit 67cb25
.. macro:: GSL_CONST_MKSA_CARAT
Packit 67cb25
Packit 67cb25
   The mass of 1 carat.
Packit 67cb25
Packit 67cb25
.. macro:: GSL_CONST_MKSA_GRAM_FORCE
Packit 67cb25
Packit 67cb25
   The force of 1 gram weight.
Packit 67cb25
Packit 67cb25
.. macro:: GSL_CONST_MKSA_POUND_FORCE
Packit 67cb25
Packit 67cb25
   The force of 1 pound weight.
Packit 67cb25
Packit 67cb25
.. macro:: GSL_CONST_MKSA_KILOPOUND_FORCE
Packit 67cb25
Packit 67cb25
   The force of 1 kilopound weight.
Packit 67cb25
Packit 67cb25
.. macro:: GSL_CONST_MKSA_POUNDAL
Packit 67cb25
Packit 67cb25
   The force of 1 poundal.
Packit 67cb25
Packit 67cb25
.. index::
Packit 67cb25
   single: energy, units of
Packit 67cb25
   single: power, units of
Packit 67cb25
   single: thermal energy, units of
Packit 67cb25
Packit 67cb25
Thermal Energy and Power
Packit 67cb25
========================
Packit 67cb25
Packit 67cb25
.. macro:: GSL_CONST_MKSA_CALORIE
Packit 67cb25
Packit 67cb25
   The energy of 1 calorie.
Packit 67cb25
Packit 67cb25
.. macro:: GSL_CONST_MKSA_BTU
Packit 67cb25
Packit 67cb25
   The energy of 1 British Thermal Unit, :math:`btu`.
Packit 67cb25
Packit 67cb25
.. macro:: GSL_CONST_MKSA_THERM
Packit 67cb25
Packit 67cb25
   The energy of 1 Therm.
Packit 67cb25
Packit 67cb25
.. macro:: GSL_CONST_MKSA_HORSEPOWER
Packit 67cb25
Packit 67cb25
   The power of 1 horsepower.
Packit 67cb25
Packit 67cb25
.. index:: pressure, units of
Packit 67cb25
Packit 67cb25
Pressure
Packit 67cb25
========
Packit 67cb25
Packit 67cb25
.. macro:: GSL_CONST_MKSA_BAR
Packit 67cb25
Packit 67cb25
   The pressure of 1 bar.
Packit 67cb25
Packit 67cb25
.. macro:: GSL_CONST_MKSA_STD_ATMOSPHERE
Packit 67cb25
Packit 67cb25
   The pressure of 1 standard atmosphere.
Packit 67cb25
Packit 67cb25
.. macro:: GSL_CONST_MKSA_TORR
Packit 67cb25
Packit 67cb25
   The pressure of 1 torr.
Packit 67cb25
Packit 67cb25
.. macro:: GSL_CONST_MKSA_METER_OF_MERCURY
Packit 67cb25
Packit 67cb25
   The pressure of 1 meter of mercury.
Packit 67cb25
Packit 67cb25
.. macro:: GSL_CONST_MKSA_INCH_OF_MERCURY
Packit 67cb25
Packit 67cb25
   The pressure of 1 inch of mercury.
Packit 67cb25
Packit 67cb25
.. macro:: GSL_CONST_MKSA_INCH_OF_WATER
Packit 67cb25
Packit 67cb25
   The pressure of 1 inch of water.
Packit 67cb25
Packit 67cb25
.. macro:: GSL_CONST_MKSA_PSI
Packit 67cb25
Packit 67cb25
   The pressure of 1 pound per square inch.
Packit 67cb25
Packit 67cb25
.. index:: viscosity, units of
Packit 67cb25
Packit 67cb25
Viscosity
Packit 67cb25
=========
Packit 67cb25
Packit 67cb25
.. macro:: GSL_CONST_MKSA_POISE
Packit 67cb25
Packit 67cb25
   The dynamic viscosity of 1 poise.
Packit 67cb25
Packit 67cb25
.. macro:: GSL_CONST_MKSA_STOKES
Packit 67cb25
Packit 67cb25
   The kinematic viscosity of 1 stokes.
Packit 67cb25
Packit 67cb25
.. index::
Packit 67cb25
   single: light, units of
Packit 67cb25
   single: illumination, units of
Packit 67cb25
Packit 67cb25
Light and Illumination
Packit 67cb25
======================
Packit 67cb25
Packit 67cb25
.. macro:: GSL_CONST_MKSA_STILB
Packit 67cb25
Packit 67cb25
   The luminance of 1 stilb.
Packit 67cb25
Packit 67cb25
.. macro:: GSL_CONST_MKSA_LUMEN
Packit 67cb25
Packit 67cb25
   The luminous flux of 1 lumen.
Packit 67cb25
Packit 67cb25
.. macro:: GSL_CONST_MKSA_LUX
Packit 67cb25
Packit 67cb25
   The illuminance of 1 lux.
Packit 67cb25
Packit 67cb25
.. macro:: GSL_CONST_MKSA_PHOT
Packit 67cb25
Packit 67cb25
   The illuminance of 1 phot.
Packit 67cb25
Packit 67cb25
.. macro:: GSL_CONST_MKSA_FOOTCANDLE
Packit 67cb25
Packit 67cb25
   The illuminance of 1 footcandle.
Packit 67cb25
Packit 67cb25
.. macro:: GSL_CONST_MKSA_LAMBERT
Packit 67cb25
Packit 67cb25
   The luminance of 1 lambert.
Packit 67cb25
Packit 67cb25
.. macro:: GSL_CONST_MKSA_FOOTLAMBERT
Packit 67cb25
Packit 67cb25
   The luminance of 1 footlambert.
Packit 67cb25
Packit 67cb25
.. index:: radioactivity, units of
Packit 67cb25
Packit 67cb25
Radioactivity
Packit 67cb25
=============
Packit 67cb25
Packit 67cb25
.. macro:: GSL_CONST_MKSA_CURIE
Packit 67cb25
Packit 67cb25
   The activity of 1 curie.
Packit 67cb25
Packit 67cb25
.. macro:: GSL_CONST_MKSA_ROENTGEN
Packit 67cb25
Packit 67cb25
   The exposure of 1 roentgen.
Packit 67cb25
Packit 67cb25
.. macro:: GSL_CONST_MKSA_RAD
Packit 67cb25
Packit 67cb25
   The absorbed dose of 1 rad.
Packit 67cb25
Packit 67cb25
.. index:: force and energy, units of
Packit 67cb25
Packit 67cb25
Force and Energy
Packit 67cb25
================
Packit 67cb25
Packit 67cb25
.. macro:: GSL_CONST_MKSA_NEWTON
Packit 67cb25
Packit 67cb25
   The SI unit of force, 1 Newton.
Packit 67cb25
Packit 67cb25
.. macro:: GSL_CONST_MKSA_DYNE
Packit 67cb25
Packit 67cb25
   The force of 1 Dyne = :math:`10^{-5}` Newton.
Packit 67cb25
Packit 67cb25
.. macro:: GSL_CONST_MKSA_JOULE
Packit 67cb25
Packit 67cb25
   The SI unit of energy, 1 Joule.
Packit 67cb25
Packit 67cb25
.. macro:: GSL_CONST_MKSA_ERG 
Packit 67cb25
Packit 67cb25
   The energy 1 erg = :math:`10^{-7}` Joule.
Packit 67cb25
Packit 67cb25
.. index::
Packit 67cb25
   single: prefixes
Packit 67cb25
   single: constants, prefixes
Packit 67cb25
Packit 67cb25
Prefixes
Packit 67cb25
========
Packit 67cb25
Packit 67cb25
These constants are dimensionless scaling factors.
Packit 67cb25
Packit 67cb25
.. macro:: GSL_CONST_NUM_YOTTA
Packit 67cb25
Packit 67cb25
   :math:`10^{24}`
Packit 67cb25
Packit 67cb25
.. macro:: GSL_CONST_NUM_ZETTA
Packit 67cb25
Packit 67cb25
   :math:`10^{21}`
Packit 67cb25
Packit 67cb25
.. macro:: GSL_CONST_NUM_EXA
Packit 67cb25
Packit 67cb25
   :math:`10^{18}`
Packit 67cb25
Packit 67cb25
.. macro:: GSL_CONST_NUM_PETA
Packit 67cb25
Packit 67cb25
   :math:`10^{15}`
Packit 67cb25
Packit 67cb25
.. macro:: GSL_CONST_NUM_TERA
Packit 67cb25
Packit 67cb25
   :math:`10^{12}`
Packit 67cb25
Packit 67cb25
.. macro:: GSL_CONST_NUM_GIGA
Packit 67cb25
Packit 67cb25
   :math:`10^9`
Packit 67cb25
Packit 67cb25
.. macro:: GSL_CONST_NUM_MEGA
Packit 67cb25
Packit 67cb25
   :math:`10^6`
Packit 67cb25
Packit 67cb25
.. macro:: GSL_CONST_NUM_KILO
Packit 67cb25
Packit 67cb25
   :math:`10^3`
Packit 67cb25
Packit 67cb25
.. macro:: GSL_CONST_NUM_MILLI
Packit 67cb25
Packit 67cb25
   :math:`10^{-3}`
Packit 67cb25
Packit 67cb25
.. macro:: GSL_CONST_NUM_MICRO
Packit 67cb25
Packit 67cb25
   :math:`10^{-6}`
Packit 67cb25
Packit 67cb25
.. macro:: GSL_CONST_NUM_NANO
Packit 67cb25
Packit 67cb25
   :math:`10^{-9}`
Packit 67cb25
Packit 67cb25
.. macro:: GSL_CONST_NUM_PICO
Packit 67cb25
Packit 67cb25
   :math:`10^{-12}`
Packit 67cb25
Packit 67cb25
.. macro:: GSL_CONST_NUM_FEMTO
Packit 67cb25
Packit 67cb25
   :math:`10^{-15}`
Packit 67cb25
Packit 67cb25
.. macro:: GSL_CONST_NUM_ATTO
Packit 67cb25
 
Packit 67cb25
   :math:`10^{-18}`
Packit 67cb25
Packit 67cb25
.. macro:: GSL_CONST_NUM_ZEPTO
Packit 67cb25
Packit 67cb25
   :math:`10^{-21}`
Packit 67cb25
Packit 67cb25
.. macro:: GSL_CONST_NUM_YOCTO
Packit 67cb25
Packit 67cb25
   :math:`10^{-24}`
Packit 67cb25
Packit 67cb25
Examples
Packit 67cb25
========
Packit 67cb25
Packit 67cb25
The following program demonstrates the use of the physical constants in
Packit 67cb25
a calculation.  In this case, the goal is to calculate the range of
Packit 67cb25
light-travel times from Earth to Mars.
Packit 67cb25
Packit 67cb25
The required data is the average distance of each planet from the Sun in
Packit 67cb25
astronomical units (the eccentricities and inclinations of the orbits
Packit 67cb25
will be neglected for the purposes of this calculation).  The average
Packit 67cb25
radius of the orbit of Mars is 1.52 astronomical units, and for the
Packit 67cb25
orbit of Earth it is 1 astronomical unit (by definition).  These values
Packit 67cb25
are combined with the MKSA values of the constants for the speed of
Packit 67cb25
light and the length of an astronomical unit to produce a result for the
Packit 67cb25
shortest and longest light-travel times in seconds.  The figures are
Packit 67cb25
converted into minutes before being displayed.
Packit 67cb25
Packit 67cb25
.. include:: examples/const.c
Packit 67cb25
   :code:
Packit 67cb25
Packit 67cb25
Here is the output from the program,
Packit 67cb25
Packit 67cb25
.. include:: examples/const.txt
Packit 67cb25
   :code:
Packit 67cb25
Packit 67cb25
References and Further Reading
Packit 67cb25
==============================
Packit 67cb25
Packit 67cb25
The authoritative sources for physical constants are the 2006 CODATA
Packit 67cb25
recommended values, published in the article below. Further
Packit 67cb25
information on the values of physical constants is also available from
Packit 67cb25
the NIST website.
Packit 67cb25
Packit 67cb25
* P.J. Mohr, B.N. Taylor, D.B. Newell, "CODATA Recommended
Packit 67cb25
  Values of the Fundamental Physical Constants: 2006", Reviews of
Packit 67cb25
  Modern Physics, 80(2), pp. 633--730 (2008).
Packit 67cb25
Packit 67cb25
* http://www.physics.nist.gov/cuu/Constants/index.html
Packit 67cb25
Packit 67cb25
* http://physics.nist.gov/Pubs/SP811/appenB9.html