a
    ¯ïa   ã                   @   sÌ  d Z ddlZddlmZ ddl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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&ƒ Z.Z/ed'ƒZ0ed(ƒ Z1Z2ed)ƒ Z3Z4ed*ƒ Z5Z6ed+ƒ Z7Z8ed,ƒ Z9Z:ed-ƒ Z;Z<ed.ƒZ=ed/ƒZ>dZ?dZ@d0ZAd1eA  ZBZCeCe0 d2  ZDZEeDd3 ZFeCd4  ZGZHd5eC ZId6eC ZJd7eC ZKd8eA ZLd3eL ZMd9ZNed:ƒ ZOZPed;ƒ ZQZRed<ƒ ZSZTed=ƒ ZU ZVZWed> ZXeXd?  ZYZZeYd?  Z[Z\d@Z]d?e] Z^dAe^ Z_dBe_ Z`dCe_ ZadDe_ Zbd2Zcd3ec ZddEed ZedFee ZfecdG ZgecdH  ZhZidIZjdJej ZkdKZldZmdLZndZodM ZpZqebe' Zrepe[ ZsedNƒ ZtZudOZvetdP  ZwZxeCe0 ecec  ZydQZzdRedd  Z{d Z|Z}dSecdE   Z~ZedT  Z€ZdUe  Z‚ZƒdVZ„e„dW Z…de^ Z†efe^ Z‡dX ZˆZ‰ele^ ZŠdYZ‹dZZŒe2 ZZŽd[ ZZd\Z‘d]Z’eCeŒ e e? Z“eCeŒ e‘ e?  Z”Z•de Z–d^ed eC e0  Z—Z˜d_ Z™ZšeCe0  Z›Zœe0 ZZžd`da„ ZŸdbdc„ Z ddde„ Z¡dS )fa  
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é   é   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›
´ã’;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 }nl|  ¡ dv r4t | ¡}nT|  ¡ dv r\t | ¡d d d t }n,|  ¡ dv r|t | ¡d d }ntd| ƒ‚|  ¡ dv rž|t }nZ|  ¡ dv r°|}nH|  ¡ dv rÒ|t d d d }n&|  ¡ dv rì|d d }ntd	| ƒ‚|S )
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celsiusÚc)ZkelvinÚk)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Ú
asanyarrayÚzero_CelsiusÚNotImplementedError)ÚvalZ	old_scaleZ	new_scaleZtempoÚres© r"   úi/Users/vegardjervell/Documents/master/model/venv/lib/python3.9/site-packages/scipy/constants/constants.pyÚconvert_temperature°   s.    *þ
þr$   c                 C   s   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#   Ú	lambda2nuú   s    r&   c                 C   s   t t | ¡ S )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%   )Únur"   r"   r#   Ú	nu2lambda  s    r(   )¢Ú__doc__ÚmathZ_mathZcodatar   Z_cdZnumpyr   ÚpiÚsqrtZgoldenZgolden_ratioZyottaZzettaZexaZpetaZteraZgigaZmegaZkiloZhectoZdekaZdeciZcentiZmilliÚmicroZnanoZpicoZfemtoZattoZzeptoZkibiZmebiZgibiZtebiZpebiZexbiZzebiZyobir   Zspeed_of_lightZmu_0Z	epsilon_0ÚhZPlanckZhbarÚGZgravitational_constantÚgÚeZelementary_chargeÚRZgas_constantÚalphaZfine_structureZN_AZAvogadror   Z	BoltzmannÚsigmaZStefan_BoltzmannZWienZRydbergZgramZ
metric_tonZgrainZlbÚpoundZblobZslinchZslugZozZounceZstoneZlong_tonZ	short_tonZ
troy_ounceZ
troy_poundZcaratZm_eZelectron_massZm_pZproton_massZm_nZneutron_massZm_uÚuZatomic_massZdegreeZarcminZ	arcminuteZarcsecZ	arcsecondÚminuteÚhourÚdayÚweekÚyearZJulian_yearZinchZfootZyardZmileÚmilÚptZpointZsurvey_footZsurvey_mileZnautical_mileZfermiZangstromZmicronÚauZastronomical_unitZ
light_yearZparsecZatmZ
atmosphereÚbarZtorrZmmHgÚpsiZhectareZacreZlitreZliterZgallonZ	gallon_USZfluid_ounceZfluid_ounce_USZbblZbarrelZ
gallon_impZfluid_ounce_impZkmhZmphZmachZspeed_of_soundZknotr   Zdegree_FahrenheitZeVZelectron_voltZcalorieZ
calorie_thZ
calorie_ITZergZBtu_thZBtuZBtu_ITZton_TNTÚhpZ
horsepowerZdynZdyneZlbfZpound_forceZkgfZkilogram_forcer$   r&   r(   r"   r"   r"   r#   Ú<module>   sð   J