o
    èEbú&  ã                   @   sÚ  d Z 	 ddlZddlmZ ddlZg d¢Zej	Z	de 
d¡ d  ZZdZd	Zd
ZdZdZdZdZdZdZdZdZdZdZdZdZdZdZdZdZdZ dZ!dZ"dZ#dZ$d Z%d!Z&dd" Z'dd# Z(ed$ƒ Z)Z*ed%ƒZ+ed&ƒZ,ed'ƒ Z-Z.e-de	  Z/ed(ƒ Z0Z1ed)ƒZ2ed*ƒ Z3Z4ed+ƒ Z5Z6ed,ƒ Z7Z8ed-ƒ Z9Z:ed.ƒ Z;Z<ed/ƒ Z=Z>ed0ƒZ?ed1ƒZ@dZAdZBd2ZCd3eC  ZDZEeEe2 d4  ZFZGeFd5 ZHeEd6  ZIZJd7eE ZKd8eE ZLd9eE ZMd:eC ZNd5eN ZOd;ZPed<ƒ ZQZRed=ƒ ZSZTed>ƒ ZUZVed?ƒ ZW ZXZYe	d@ ZZeZdA  Z[Z\e[dA  Z]Z^dBZ_dAe_ Z`dCe` ZadDea ZbdEea ZcdFea Zdd4Zed5ee ZfdGef ZgdHeg ZheedI ZieedJ  ZjZkdKZldLel ZmdMZndZodNZpdZqdO ZrZsede) Ztere] ZuedPƒ ZvZwdQZxevdR  ZyZzeEe2 eeee  Z{dSZ|dTefd  Z}d Z~ZdUeedG   Z€ZedV  Z‚ZƒdWe  Z„Z…dXZ†e†dY Z‡de` Zˆehe` Z‰dZ ZŠZ‹ene` ZŒd[Zd\ZŽe4 ZZd] Z‘Z’d^Z“d_Z”eEeŽ e’ eA Z•eEeŽ e“ eA  Z–Z—de’ Z˜d`ef eE e2  Z™Zšda Z›ZœeEe2  ZZže2 ZŸZ dbdc„ Z¡ddde„ Z¢dfdg„ Z£dS )ha  
Collection of physical constants and conversion factors.

Most constants are in SI units, so you can do
print '10 mile per minute is', 10*mile/minute, 'm/s or', 10*mile/(minute*knot), 'knots'

The list is not meant to be comprehensive, but just convenient for everyday use.
é    Né   )Úvalue)šÚAvogadroÚ	BoltzmannÚBtuÚBtu_ITÚBtu_thÚGÚJulian_yearÚN_AÚPlanckÚRÚRydbergÚStefan_BoltzmannÚWienÚacreÚalphaÚangstromÚarcminÚ	arcminuteÚarcsecÚ	arcsecondÚastronomical_unitÚatmÚ
atmosphereÚatomic_massÚattoÚauÚbarÚbarrelÚbblÚblobÚcÚcalorieÚ
calorie_ITÚ
calorie_thÚcaratÚcentiÚconvert_temperatureÚdayÚdeciÚdegreeÚdegree_FahrenheitÚdekaÚdynÚdyneÚeÚeVÚelectron_massÚelectron_voltÚelementary_chargeÚ	epsilon_0ÚergÚexaÚexbiÚfemtoÚfermiÚfine_structureÚfluid_ounceÚfluid_ounce_USÚfluid_ounce_impÚfootÚgÚgallonÚ	gallon_USÚ
gallon_impÚgas_constantÚgibiÚgigaÚgoldenÚgolden_ratioÚgrainÚgramÚgravitational_constantÚhÚhbarÚhectareÚhectoÚ
horsepowerÚhourÚhpÚinchÚkÚkgfÚkibiÚkiloÚkilogram_forceÚkmhÚknotÚ	lambda2nuÚlbÚlbfÚ
light_yearÚliterÚlitreÚlong_tonÚm_eÚm_nÚm_pÚm_uÚmachÚmebiÚmegaÚ
metric_tonÚmicroÚmicronÚmilÚmileÚmilliÚminuteÚmmHgÚmphÚmu_0ÚnanoÚnautical_mileÚneutron_massÚ	nu2lambdaÚounceÚozÚparsecÚpebiÚpetaÚpiÚpicoÚpointÚpoundÚpound_forceÚproton_massÚpsiÚptÚ	short_tonÚsigmaÚslinchÚslugÚspeed_of_lightÚspeed_of_soundÚstoneÚsurvey_footÚsurvey_mileÚtebiÚteraÚton_TNTÚtorrÚ
troy_ounceÚ
troy_poundÚuÚweekÚyardÚyearÚyobiÚyoctoÚyottaÚzebiÚzeptoÚzero_CelsiusÚzettaé   é   g´ÙyCxêDgPïâÖäKDg ÈNgmÁ«Cg  4&õkCg   ¢”mBg    eÍÍAg    €„.Ag     @@g      Y@g      $@gš™™™™™¹?g{®Gáz„?gü©ñÒMbP?gíµ ÷Æ°>g•Ö&è.>gê-™—q=gVçž¯Ò<g¬CÒÑ]r2<gO›
´ã’;g§Ž¨™ÂWó:i   i   i   @l        l           l            éF   éP   zspeed of light in vacuumzvacuum mag. permeabilityzvacuum electric permittivityzPlanck constantz!Newtonian constant of gravitationz standard acceleration of gravityzelementary chargezmolar gas constantzfine-structure constantzAvogadro constantzBoltzmann constantzStefan-Boltzmann constantz)Wien wavelength displacement law constantzRydberg constantgê€Ì”ü?iX  g¦
F%uš?é   é   é   iÀ  iÐ  ià  g-Cëâ6*?zelectron masszproton masszneutron masszatomic mass constanté´   é<   g      N@é   é   im  g     Ôv@é   ià  iè  éH   g;p‚jÚÓ?i   g     ðœ@g»½×Ùß|Û=g  6-]jABzstandard atmosphereg     jø@iø  g     ˆÃ@i(ª  éç   é€   é*   g½¨þ½ëžr?é    g     Hu@gfffffq@grÇqÇá?g#Ûù~j¼@g:’ËH¿@gH¯¼šò×z>i&  gñhãˆµøä>c                 C   s   |  ¡ dv rt | ¡t }n6|  ¡ dv rt | ¡}n*|  ¡ dv r.t | ¡d d d t }n|  ¡ dv r>t | ¡d d }ntd| ƒ‚|  ¡ dv rP|t }|S |  ¡ dv rZ|}|S |  ¡ dv rl|t d d d }|S |  ¡ dv rz|d d }|S td	| ƒ‚)
aB  
    Convert from a temperature scale to another one among Celsius, Kelvin,
    Fahrenheit, and Rankine scales.

    Parameters
    ----------
    val : array_like
        Value(s) of the temperature(s) to be converted expressed in the
        original scale.

    old_scale: str
        Specifies as a string the original scale from which the temperature
        value(s) will be converted. Supported scales are Celsius ('Celsius',
        'celsius', 'C' or 'c'), Kelvin ('Kelvin', 'kelvin', 'K', 'k'),
        Fahrenheit ('Fahrenheit', 'fahrenheit', 'F' or 'f'), and Rankine
        ('Rankine', 'rankine', 'R', 'r').

    new_scale: str
        Specifies as a string the new scale to which the temperature
        value(s) will be converted. Supported scales are Celsius ('Celsius',
        'celsius', 'C' or 'c'), Kelvin ('Kelvin', 'kelvin', 'K', 'k'),
        Fahrenheit ('Fahrenheit', 'fahrenheit', 'F' or 'f'), and Rankine
        ('Rankine', 'rankine', 'R', 'r').

    Returns
    -------
    res : float or array of floats
        Value(s) of the converted temperature(s) expressed in the new scale.

    Notes
    -----
    .. versionadded:: 0.18.0

    Examples
    --------
    >>> from scipy.constants import convert_temperature
    >>> convert_temperature(np.array([-40, 40]), 'Celsius', 'Kelvin')
    array([ 233.15,  313.15])

    )Zcelsiusr"   )ZkelvinrT   )Z
fahrenheitÚfé    rž   é	   )ZrankineÚrzV%s scale is unsupported: supported scales are Celsius, Kelvin, Fahrenheit, and Rankinez`'%s' scale is unsupported: supported scales are 'Celsius', 'Kelvin', 'Fahrenheit', and 'Rankine')ÚlowerÚ_npÚ
asanyarrayrœ   ÚNotImplementedError)ÚvalZ	old_scaleZ	new_scaleZtempoÚres© r¹   ú</usr/lib/python3/dist-packages/scipy/constants/_constants.pyr(   Ø   s4   *þõ
÷ùüþr(   c                 C   ó   t t | ¡ S )a1  
    Convert wavelength to optical frequency

    Parameters
    ----------
    lambda_ : array_like
        Wavelength(s) to be converted.

    Returns
    -------
    nu : float or array of floats
        Equivalent optical frequency.

    Notes
    -----
    Computes ``nu = c / lambda`` where c = 299792458.0, i.e., the
    (vacuum) speed of light in meters/second.

    Examples
    --------
    >>> from scipy.constants import lambda2nu, speed_of_light
    >>> lambda2nu(np.array((1, speed_of_light)))
    array([  2.99792458e+08,   1.00000000e+00])

    ©r"   r´   rµ   )Zlambda_r¹   r¹   rº   r[   "  ó   r[   c                 C   r»   )a1  
    Convert optical frequency to wavelength.

    Parameters
    ----------
    nu : array_like
        Optical frequency to be converted.

    Returns
    -------
    lambda : float or array of floats
        Equivalent wavelength(s).

    Notes
    -----
    Computes ``lambda = c / nu`` where c = 299792458.0, i.e., the
    (vacuum) speed of light in meters/second.

    Examples
    --------
    >>> from scipy.constants import nu2lambda, speed_of_light
    >>> nu2lambda(np.array((1, speed_of_light)))
    array([  2.99792458e+08,   1.00000000e+00])

    r¼   )Znur¹   r¹   rº   rv   ?  r½   rv   )¤Ú__doc__ZmathZ_mathZ_codatar   Z_cdZnumpyr´   Ú__all__r|   ZsqrtrG   rH   r™   r   r7   r{   rŽ   rF   rh   rW   rO   r-   r*   r'   rn   rj   rs   r}   r9   r   r›   r˜   rV   rg   rE   r   rz   r8   rš   r—   r"   rˆ   rr   r5   rL   r   rM   r	   rK   r@   r0   r4   r   rD   r   r;   r   r   rT   r   r…   r   r   r   rJ   ri   rI   r\   r   r!   r†   r‡   rx   rw   rŠ   ra   r„   r‘   r’   r&   rb   r2   rd   r   rc   ru   re   r“   r   r+   r   r   r   r   ro   rQ   r)   r”   r–   r
   rS   r?   r•   rm   rl   rƒ   r~   r‹   rŒ   rt   r:   r   rk   r   r   r^   ry   r   r   r   r   rp   r‚   rN   r   r`   r_   rA   rB   r<   r=   r    r   rC   r>   rY   rq   rf   r‰   rZ   rœ   r,   r1   r3   r#   r%   r$   r6   r   r   r   r   rR   rP   r.   r/   r]   r€   rU   rX   r(   r[   rv   r¹   r¹   r¹   rº   Ú<module>   sø    	'J