Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Added a bunch of constants to sympy/physics/units #12450

Merged
merged 1 commit into from
Mar 31, 2017
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
4 changes: 4 additions & 0 deletions sympy/physics/units/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -155,6 +155,10 @@
avogadro_number,
avogadro, avogadro_constant,
boltzmann, boltzmann_constant,
R, molar_gas_constant,
faraday_constant,
josephson_constant,
von_klitzing_constant,
amu, amus, atomic_mass_unit, atomic_mass_constant,
gee, gees, acceleration_due_to_gravity,
u0, magnetic_constant,
Expand Down
9 changes: 9 additions & 0 deletions sympy/physics/units/definitions.py
Original file line number Diff line number Diff line change
Expand Up @@ -125,6 +125,15 @@
boltzmann = boltzmann_constant = Quantity("boltzmann_constant", energy/temperature, 1.38064852e-23*joule/kelvin)
# Atomic mass
amu = amus = atomic_mass_unit = atomic_mass_constant = Quantity("atomic_mass_constant", mass, 1.660539040e-24*gram)
# Molar gas constant
R = molar_gas_constant = Quantity("molar_gas_constant", energy/(temperature * amount_of_substance),
8.3144598*joule/kelvin/mol, abbrev="R")
# Faraday constant
faraday_constant = Quantity("faraday_constant", charge/amount_of_substance, 96485.33289*C/mol)
# Josephson constant
josephson_constant = Quantity("josephson_constant", frequency/voltage, 483597.8525e9*hertz/V, abbrev="K_j")
# Von Klitzing constant
von_klitzing_constant = Quantity("von_klitzing_constant", voltage/current, 25812.8074555*ohm, abbrev="R_k")
# Acceleration due to gravity (on the Earth surface)
gee = gees = acceleration_due_to_gravity = Quantity("acceleration_due_to_gravity", acceleration, 9.80665*meter/second**2, "g")
# magnetic constant:
Expand Down