constants

Note

constants is also available under nexus., e.g. nexus.inf.

Module with constants available to the user in Nexus.

nexus.constants.BohrMagneton = 5.788381806e-05

Bohr magneton in eV/T

New in version 1.0.3.

nexus.constants.Boltzmann = 8.617333262e-05

Boltzmann constant in eV/K.

nexus.constants.ElectronG = -2.00231930436256

g factor of the electron.

New in version 1.0.3.

nexus.constants.ElectronMass = 510998.95

electron mass in eV/c2.

nexus.constants.ElectronRadius = 2.8179403227e-15

classical electron radius in meter.

nexus.constants.ElementaryCharge = 1.602176634e-19

elementary charge in coulombs

New in version 1.0.3.

nexus.constants.H = 4.135667696e-15

Planck constant in eV/Hz

New in version 1.0.3.

nexus.constants.HBar = 6.582119569e-16

reduced Planck constant in eVs

nexus.constants.Na = 6.02214076e+23

Avogadro constant, per mole.

nexus.constants.NeutronMass = 939565420.52

neutron mass in eV/c2.

New in version 1.0.3.

nexus.constants.NuclearMagneton = 3.152451255e-08

nuclear magneton in eV/T

nexus.constants.PlanckConstant = 4.135667696e-15

Planck constant in eV/Hz

nexus.constants.ProtonMass = 938272088.16

proton mass in eV/c2.

New in version 1.0.3.

nexus.constants.SpeedOfLight = 299792458.0

speed of light in m/s

nexus.constants.e0 = 8.854187817620389e-12

vacuum permittivity in F/m

New in version 1.0.3.

nexus.constants.inf = inf

Definition of infinity, same as np.inf

nexus.constants.mu0 = 1.2566370614359173e-06

vacuum magnetic permeability in H/m

New in version 1.0.3.

nexus.constants.nan = nan

Definition of nan, same as np.nan

nexus.constants.pi = 3.141592653589793

Definition of pi, same as np.pi

Examples

print(nx.constants.pi)

print(nx.pi)