[SciPy-Dev] requesting code review: physical constants

Kevin Davies kdavies4 at gmail.com
Sun Apr 27 12:23:30 EDT 2014


Thanks, good point.  I can move it to exact_values, but it'll be a long 
dictionary if we make exact_values comprehensive.

On 04/27/2014 02:02 AM, Pauli Virtanen wrote:
> 27.04.2014 10:07, Kevin Davies kirjoitti:
>> I changed constants.py to calculate more of the physical constants
>> directly instead of lookup in the codata tables.  I think it's best
>> to encode the underlying algebraic relations where they exist.
> This is actually currently done at the end of `codata.py`, via the
> exact_values stuff. It would make sense to move all of that processing
> there, so that constants returned by `value()` are consistent with the
> named ones.
>
> [clip]
>> This change introduces four additional constants to
>> scipy.constants:
>>
>> 1. magnetic quantum (Phi_0) 2. conductance quantum (G_0) 3. Faraday
>> constant (F) 4. characteristic impedance of vacuum (Z_0)
> Adding these should be OK.
>




More information about the SciPy-Dev mailing list