Skip to main content

A physical quantity calculator.

Project description

Demo

Rest mass of an electron

>>> me
9.1093837015e-31 kg

Speed of light

>>> c
299792458.0 m * s**-1

Rest energy of an electron

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

In mega electronvolts

>>> me * c**2 / MeV
0.5109989499961642

This matches the rest energy of electron on Wikipedia.

Usage

  • Install this module via pip install electronvolt.
  • Recommended to use in an interactive python environment, e.g. jupyter notebook.
  • Recommended to import via from electronvolt import *.

You can also run this module online HERE.

  • This page typically loads in 3 minutes.
  • Use shift+enter to run a block of code.
  • Run the first block to initialize the calculator.
  • Run the second block to feel how it works.

Units and Constants

Variable Name Value Unit
Math Constants
pi 3.14159265
euler 2.71828183
Metric Prefixes
yotta 1.00E+24
zetta 1.00E+21
exa 1.00E+18
peta 1.00E+15
tera 1.00E+12
giga 1.00E+09
mega 1000000
kilo 1000
hecto 100
deca 10
deci 0.1
centi 0.01
milli 0.001
micro 1.00E-06
nano 1.00E-09
pico 1.00E-12
femto 1.00E-15
atto 1.00E-18
zepto 1.00E-21
yocto 1.00E-24
Other Prefixes
hundred 100
thousand 1000
million 1000000
billion 1.00E+09
trillion 1.00E+12
SI Units
s 1 s
m 1 m
kg 1 kg
A 1 A
K 1 K
mol 1 mol
cd 1 cd
Time
minute 60 s
hour 3600 s
day 86400 s
week 604800 s
year 31557600 s
ms 0.001 s
us 1.00E-06 s
ns 1.00E-09 s
Length
km 1000 m
dm 0.1 m
cm 0.01 m
mm 0.001 m
um 1.00E-06 m
nm 1.00E-09 m
fm 1.00E-15 m
Frequency
Hz 1 s**-1
kHz 1000 s**-1
MHz 1000000 s**-1
GHz 1.00E+09 s**-1
THz 1.00E+12 s**-1
Classical Mechanics
g 9.80665 m * s**-2
N 1 kg * m * s**-2
Pa 1 kg * m**-1 * s**-2
J 1 kg * m**2 * s**-2
W 1 kg * m**2 * s**-3
Thermodynamics
h 6.63E-34 kg * m**2 * s**-1
hbar 1.05E-34 kg * m**2 * s**-1
NA 6.02E+23 mol**-1
kB 1.38E-23 kg * m**2 * s**-2 * K**-1
R 8.31446262 kg * mol**-1 * K**-1 * m**2 * s**-2
Electromagnetism
C 1 s * A
V 1 kg * A**-1 * m**2 * s**-3
F 1 kg**-1 * A**2 * m**-2 * s**4
Ohm 1 kg * A**-2 * m**2 * s**-3
T 1 kg * A**-1 * s**-2
Wb 1 kg * m**2 * s**-2 * A**-1
H 1 kg * A**-2 * m**2 * s**-2
c 299792458 m * s**-1
mu0 1.26E-06 kg * A**-2 * m * s**-2
epsilon0 8.85E-12 kg**-1 * m**-3 * s**4 * A**2
k 8.99E+09 kg * m**3 * s**-4 * A**-2
e 1.60E-19 s * A
Everyday Life
mile 1609.344 m
kph 0.277777778 m * s**-1
mph 0.44704 m * s**-1
gram 0.001 kg
L 0.001 m**3
kWh 3600000 kg * m**2 * s**-2
Atomic Physics
me 9.11E-31 kg
mp 1.67E-27 kg
mn 1.67E-27 kg
u 1.66E-27 kg
mH 1.67E-27 kg
mHe 6.65E-27 kg
Quantum Mechanics
sigma 5.67E-08 kg * K**-4 * s**-3
a0 5.29E-11 m
hground -2.18E-18 kg * m**2 * s**-2
alpha 0.007297353
Rinfty 10973731.6 m**-1
Radioactive Decay
Bq 1 s**-1
Ci 3.70E+10 s**-1
mCi 37000000 s**-1
uCi 37000 s**-1
Nuclear Physics
eV 1.60E-19 kg * m**2 * s**-2
keV 1.60E-16 kg * m**2 * s**-2
MeV 1.60E-13 kg * m**2 * s**-2
GeV 1.60E-10 kg * m**2 * s**-2
TeV 1.60E-07 kg * m**2 * s**-2
eVpc 5.34E-28 kg * m * s**-1
MeVpc 5.34E-22 kg * m * s**-1
eVpc2 1.78E-36 kg
MeVpc2 1.78E-30 kg
Cosmology
G 6.67E-11 kg**-1 * m**3 * s**-2
au 1.50E+11 m
ly 9.46E+15 m
pc 3.09E+16 m
Mpc 3.09E+22 m
H0 2.33E-18 s**-1

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

electronvolt-1.0.4.tar.gz (7.0 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

electronvolt-1.0.4-py3-none-any.whl (7.4 kB view details)

Uploaded Python 3

File details

Details for the file electronvolt-1.0.4.tar.gz.

File metadata

  • Download URL: electronvolt-1.0.4.tar.gz
  • Upload date:
  • Size: 7.0 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.2.0 pkginfo/1.6.0 requests/2.24.0 setuptools/50.3.2 requests-toolbelt/0.9.1 tqdm/4.51.0 CPython/3.6.12

File hashes

Hashes for electronvolt-1.0.4.tar.gz
Algorithm Hash digest
SHA256 a6f728ce4a6516d9941072ed2ea1d589c5ae116f344ef6550122241a695d5959
MD5 a0da1d6146e3b4cd2eba2ebe13021817
BLAKE2b-256 ae45bcaa1d90a5438f019aac0c824ac035df31871878492aae1aeeacfbbdca03

See more details on using hashes here.

File details

Details for the file electronvolt-1.0.4-py3-none-any.whl.

File metadata

  • Download URL: electronvolt-1.0.4-py3-none-any.whl
  • Upload date:
  • Size: 7.4 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.2.0 pkginfo/1.6.0 requests/2.24.0 setuptools/50.3.2 requests-toolbelt/0.9.1 tqdm/4.51.0 CPython/3.6.12

File hashes

Hashes for electronvolt-1.0.4-py3-none-any.whl
Algorithm Hash digest
SHA256 299130da8ba6efb2e4b99c53aa0aad4676e06771c140eb088c32d3014c2c9843
MD5 16b6ed4c70cc0eea587904176efd5096
BLAKE2b-256 8d467c27febbca4420bbeb8131a75d74fdab16b9f6b27f0f7d9849c244d70bfa

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page