a3ff46390b10c6069597ad8b98d0cbb77b48d8ef,scipy/constants/codata.py,,,#,1706

Before Change



exact_values = {
    "vacuum mag. permeability": (mu0, "N A^-2", 0.0),
    "vacuum electric permittivity": (epsilon0, "F m^-1", 0.0),
    "atomic unit of permittivity": (4 * epsilon0 * pi, "F m^-1", 0.0),
    "joule-kilogram relationship": (1 / (c * c), "kg", 0.0),
    "kilogram-joule relationship": (c * c, "J", 0.0),

After Change


    
c = value("speed of light in vacuum")
mu0 = value("vacuum mag. permeability")
epsilon0 = value("vacuum electric permittivity")

// Table is lacking some digits for exact values: calculate from definition
exact_values = {
    "joule-kilogram relationship": (1 / (c * c), "kg", 0.0),
    "kilogram-joule relationship": (c * c, "J", 0.0),
    "hertz-inverse meter relationship": (1 / c, "m^-1", 0.0),

    // The following derived quantities are no longer exact (CODATA2018):
    // specify separately
    "characteristic impedance of vacuum": (
        sqrt(mu0 / epsilon0), "ohm",
        sqrt(mu0 / epsilon0) * 0.5 * (
            physical_constants["vacuum mag. permeability"][2] / mu0
            + physical_constants["vacuum electric permittivity"][2] / epsilon0))
}

// sanity check
for key in exact_values:
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 3

Non-data size: 4

Instances


Project Name: scipy/scipy
Commit Name: a3ff46390b10c6069597ad8b98d0cbb77b48d8ef
Time: 2020-04-10
Author: pav@iki.fi
File Name: scipy/constants/codata.py
Class Name:
Method Name:


Project Name: interactiveaudiolab/nussl
Commit Name: 441a175deaa5812c086cdb8a3939d51d39f5a7ae
Time: 2020-01-26
Author: prem@u.northwestern.edu
File Name: nussl/deep/train/trainer.py
Class Name: Trainer
Method Name: setup_loss


Project Name: reinforceio/tensorforce
Commit Name: ee950b503eeed5aca3747a4bcf2a40f624b743a0
Time: 2019-01-21
Author: alexkuhnle@t-online.de
File Name: tensorforce/core/optimizers/solvers/conjugate_gradient.py
Class Name: ConjugateGradient
Method Name: tf_start