Skip to main content

Fundamental physical constants and their units

Project description

GhuConst - Fundamental Physical Constants and their units

Built-in physical constants

c                                   speed o light in vacuum
mu_0                                vacuum mag. permeability
epsilon_0                           vacuum electric permittivity
Z_0                                 characteristic impedance of vacuum
G                                   Newtonian constant of gravitation
g_iag                               gravity measured at IAG-USP
h                                   Planck constant
hbar                                Planck constant / 2 * pi
e                                   elementary charge
elementary_charge                   elementary charge
R                                   molar gas constant
Avogadro                            Avogadro constant
Boltzmann                           Boltzmann constant
Stefan-Boltzmann                    Stefan-Boltzmann constant
Bohr_Radius                         Bohr radius
atm                                 standard atmosphere
Wien                                Wien Constant (wavelength)
Rydberg                             Rydberg Constant
mass_electron                       electron mass
mass_proton                         proton mass
mass_neutron                        neutron mass
mass_muon                           muon mass
mass_tau                            tau mass
mass_deuteron                       deuteron mass
mass_triton                         triton mass
mass_helion                         helion mass
mass_alpha_p                        alpha particle mass
mass_atomic                         atomic mass constant

Constants Database

All data was taken from CODATA, you can enter their website for more information.

Also, you can take a look at the full list of constants.

Constants's Functions

The "name" parameter is the name of the constant in CODATA list. this name can be found in the complete list (link above)

val(name): returns constant's value
    example:
        val('conductance quantum') = > returns 7.748091729e-5

unit(name): returns constant's unit
    example:
        unit('speed of light in vacuum') = > returns m s^-1

uncertainty(name): returns constant's uncertainty
    example:
        uncertainty('Planck constant') = > returns 0.0

If any function returns the number zero with the type int, it means that the name you entered is wrong or not in the list. When the function needs to return the number zero, the type returned is float

Temperature Functions

The "number" parameter is the temperature value you want to convert

c_to_f(number)          Convert Celsius to Fahrenheit
f_to_c(number)          Convert Fahrenheit to Celsius
c_to_k(number)          Convert Celsius to Kelvin
k_to_c(number)          Convert Kelvin to Celsius
f_to_k(number)          Convert Fahrenheit to Kelvin
k_to_f(number)          Convert Kelvin to Fahrenheit

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

GhuConst-0.2.0.tar.gz (32.8 kB view details)

Uploaded Source

File details

Details for the file GhuConst-0.2.0.tar.gz.

File metadata

  • Download URL: GhuConst-0.2.0.tar.gz
  • Upload date:
  • Size: 32.8 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.2.0 pkginfo/1.5.0.1 requests/2.22.0 setuptools/46.0.0.post20200309 requests-toolbelt/0.9.1 tqdm/4.42.1 CPython/3.7.6

File hashes

Hashes for GhuConst-0.2.0.tar.gz
Algorithm Hash digest
SHA256 6cf756068dd475e792b3aa21d9e5b119fc67accb48adb4ef01a4a50877ecfd90
MD5 6d9de678e6f4eac4f07693d3889b5f40
BLAKE2b-256 887b92f3de78317b1f249fe35753abbf8d299cd44398bc17566b543853b218a9

See more details on using hashes here.

Supported by

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