Skip to content

Commit eeb796f

Browse files
committed
fix value of physical constants
1 parent 5cfd12f commit eeb796f

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/utilities.jl

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,7 @@ function n_thermal(ω::T1, ω_th::T2) where {T1<:Real,T2<:Real}
4949
end
5050

5151
# some fundamental physical constants and common energy units
52-
const _e = 1.602176634e-19 # elementary charge (C)
52+
const _e = 1.602176565e-19 # elementary charge (C)
5353
const _kB = 1.3806488e-23 # Boltzmann constant (J/K)
5454
const _h = 6.62607015e-34 # Planck constant (J⋅s)
5555
const _energy_units::Dict{Symbol,Float64} = Dict(
@@ -77,13 +77,13 @@ Note that `unit1` and `unit2` can be either the following `Symbol`:
7777
7878
```
7979
julia> convert_unit(1, :eV, :J)
80-
1.602176634e-19
80+
1.602176565e-19
8181
8282
julia> convert_unit(1, :GHz, :J)
8383
6.62607015e-25
8484
8585
julia> convert_unit(1, :meV, :mK)
86-
11604.519802573976
86+
11604.51930280894
8787
```
8888
"""
8989
function convert_unit(value::T, unit1::Symbol, unit2::Symbol) where {T<:Real}

0 commit comments

Comments
 (0)