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.

Files for GhuConst, version 0.2.0
Filename, size File type Python version Upload date Hashes
Filename, size GhuConst-0.2.0.tar.gz (32.8 kB) File type Source Python version None Upload date Hashes View

Supported by

AWS AWS Cloud computing Datadog Datadog Monitoring DigiCert DigiCert EV certificate Facebook / Instagram Facebook / Instagram PSF Sponsor Fastly Fastly CDN Google Google Object Storage and Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Salesforce Salesforce PSF Sponsor Sentry Sentry Error logging StatusPage StatusPage Status page