Skip to content

Repository files navigation

Demo

Import module

>>>fromelectronvoltimport*

Rest mass of an electron

>>>me9.1093837015e-31*kg

Rest energy of the electron, in SI units

>>>me*c**28.187105776823886e-14*m**2*s**-2*kg

In mega electronvolts

>>>me*c**2/MeV0.5109989499961642

This matches the electron rest energy on Wikipedia.

Usage

Install via pip install electronvolt.

Alternatively, run this module online

  • Typically loads within 3 minutes.
  • Shift+enter to run a block of code. Run first block to initialize the calculator.

Units and Constants

NameSymbolValueUnit
Math Constants
pi3.141592653589793
Euler's numbereuler2.718281828459045
Metric Prefixes
yotta1 e+24
zetta1 e+21
exa1 e+18
peta1 e+15
tera1 e+12
giga1 e+09
mega1000000
kilo1000
hecto100
deca10
deci0.1
centi0.01
milli0.001
micro1 e-06
nano1 e-09
pico1 e-12
femto1 e-15
atto1 e-18
zepto1 e-21
yocto1 e-24
Common Prefixes
hundred100
thousand1000
million1000000
billion1 e+09
trillion1 e+12
SI Base Units
seconds1s
meterm1m
kilogramkg1kg
ampereA1A
kelvinK1K
molemol1mol
candelacd1cd
Time
minute60s
hour3600s
day86400s
week604800s
year31557600s
millisecondms0.001s
microsecondus1 e-06s
nanosecondns1 e-09s
Length
kilometerkm1000m
decimeterdm0.1m
centimetercm0.01m
millimetermm0.001m
micrometerum1 e-06m
nanometernm1 e-09m
picometerpm1 e-12m
femtometerfm1 e-15m
Frequency
hertzHz1s-1
kilohertzkHz1000s-1
megahertzMHz1000000s-1
gigahertzGHz1 e+09s-1
terahertzTHz1 e+12s-1
Classical Mechanics
gravitational accelerationg9.80665ms-2
newtonN1kgms-2
pascalPa1kgm-1s-2
jouleJ1kgm2s-2
wattW1kgm2s-3
Thermodynamics
Planck constanth6.62607015 e-34kgm2s-1
reduced Planck constanthbar1.05457181765 e-34kgm2s-1
Avogadro constantNA6.02214076 e+23mol-1
Boltzmann constantkB1.380649 e-23kgm2s-2K-1
ideal gas constantR8.31446261815324kgmol-1K-1m2s-2
Electromagnetism
coulombC1sA
voltV1kgA-1m2s-3
faradF1kg-1A2m-2s4
Ohm1kgA-2m2s-3
teslaT1kgA-1s-2
weberWb1kgm2s-2A-1
henryH1kgA-2m2s-2
speed of lightc299792458ms-1
vacuum magnetic permeabilitymu01.25663706212 e-06kgA-2ms-2
vacuum electric permittivityepsilon08.8541878128 e-12kg-1m-3s4A2
Coulomb constantk8987551792.26078kgm3s-4A-2
elementary chargee1.602176634 e-19sA
Imperial Units
inch ('in' is a python keyword)in_0.0254m
footft0.3048m
yardyd0.9144m
milemi1609.344m
acre4046.8564224m2
nautical mileNM1852m
knotkn0.514444444444445ms-1
US gallongal0.003785411784m3
pound-masslb0.45359237kg
pound-forcelbf4.4482216152605kgms-2
slug14.59390293720637kg
blob175.1268352464764kg
Common Units
kilometer per hourkph0.277777777777778ms-1
miles per hourmph0.44704ms-1
gram0.001kg
literL0.001m3
pound per square inchpsi6894.757kgm-1s-2
kilowatt-hourkWh3600000kgm2s-2
hectareha10000m2
Atomic Physics
electron rest massme9.1093837015 e-31kg
proton massmp1.67262192369 e-27kg
neutron massmn1.67492749804 e-27kg
atomic mass unitu1.6605390666 e-27kg
atomic mass of hydrogenmH1.6735327848 e-27kg
atomic mass of heliummHe6.64647698905 e-27kg
Quantum Mechanics
Stefan-Boltzmann constantsigma5.67037441918 e-08kgK-4s-3
Bohr radiusa05.29177210906 e-11m
hydrogen ground state energyhground-2.1798723611 e-18kgm2s-2
fine-structure constantalpha0.007297352569278
Rydberg constantRydberg10973731.56807162m-1
Radioactive Decays
becquerelBq1s-1
curieCi3.7 e+10s-1
millicuriemCi37000000s-1
microcurieuCi37000s-1
Nuclear Physics
electronvolteV1.602176634 e-19kgm2s-2
kilo-electronvoltkeV1.602176634 e-16kgm2s-2
mega-electronvoltMeV1.602176634 e-13kgm2s-2
giga-electronvoltGeV1.602176634 e-10kgm2s-2
tera-electronvoltTeV1.602176634 e-07kgm2s-2
electronvolt per speed of lighteVpc5.34428599268 e-28kgms-1
mega-electronvolt per cMeVpc5.34428599268 e-22kgms-1
electronvolt per c squaredeVpc21.78266192163 e-36kg
mega-electronvolt per c squaredMeVpc21.78266192163 e-30kg
Cosmology
gravitational constantG6.6743 e-11kg-1m3s-2
astronomical unitau149597870700m
light-yearly9460730472580800m
parsecpc3.08567758149 e+16m
megaparsecMpc3.08567758149 e+22m
Hubble parameterH02.3333610884 e-18s-1

More Demo

Import ufloat from uncertainties

>>>fromuncertaintiesimportufloat

Rest mass of an electron

>>>me=ufloat(9.1093837015, 0.0000000028) *1e-31*kg

Rest energy of the electron

>>>me*c**2
(8.1871057768+/-0.0000000025)e-14*kg*s**-2*m**2

This matches the electron rest energy on the same Wikipedia page.

About

A physics quantity calculator with units.

Topics

Resources

Stars

1 star

Watchers

1 watching

Forks

Contributors

Languages