CoolFace
Apppublic

Aluode/PerceptionLabPortable

sourceHugging Faceupdated 9mo agoView on Hugging Face
0likes
_constants.cpython-310.pyc118 linesDownload Raw Back to __pycache__
1o

2��Yio*�@s4dZddlZddlmZmZddlmZerddl	mZ3ddlmZm
Z
	gd�ZejZde�d�d	ZZd4ZdZdZd
ZdZdZdZdZdZdZdZdZdZdZ dZ!dZ"dZ#dZ$dZ%dZ&dZ'dZ(d Z)d!Z*d"Z+d#Z,d$Z-d%Z.d&Z/d'Z0d	d(Z1d	d)Z2ed*�Z3Z4ed+�Z5ed,�Z6ed-�Z7Z8ed.�Z9ed/�Z:Z;ed0�Z<ed1�Z=Z>ed2�Z?Z@ed3�ZAZBed4�ZCZDed5�ZEZFed6�ZGZHed7�ZIed8�ZJdZKdZLd9ZMd:eMZNZOeOe<d;ZPZQePd<ZReOd=ZSZTd>eOZUd?eOZVd@eOZWdAeMZXd<eXZYdBZZedC�Z[Z\edD�Z]Z^edE�Z_Z`edF�ZaZbZcedGZdeddHZeZfeedHZgZhdIZidHeiZjdJejZkdKekZldLekZmdMekZnd;Zod<eoZpdNepZqdOeqZreodPZseodQZtZudRZvdSevZwdTZxdZydUZzdZ{dVZ|Z}ene3Z~e|egZedW�Z�Z�dXZ�e�dYZ�Z�eOe<eoeoZ�dZZ�d[epd	Z�dZ�Z�d\eodNZ�Z�e�d]Z�Z�d^e�Z�Z�d_Z�e�d`Z�dejZ�erejZ�daZ�Z�exejZ�dbZ�dcZ�e>Z�Z�ddZ�Z�deZ�dfZ�eOe�e�eKZ�eOe�e�eKZ�Z�de�Z�dgepeOe<Z�Z�dhZ�Z�eOe<Z�Z�e<Z�Z�didjdke�dle�dmefdndo�Z�dpdjdmefdqdr�Z�dsdjdmefdtdu�Z�dS)va5Collection of physical constants and conversion factors.6 7Most constants are in SI units, so you can do8print '10 mile per minute is', 10*mile/minute, 'm/s or', 10*mile/(minute*knot), 'knots'9 10The list is not meant to be comprehensive, but just convenient for everyday use.11�N)�
TYPE_CHECKING�Any�)�value)�array_namespace�_asarray)��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�12atmosphere�atomic_mass�atto�au�bar�barrel�bbl�blob�c�calorie�13calorie_IT�14calorie_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�15gallon_imp�gas_constant�gibi�giga�golden�golden_ratio�grain�gram�gravitational_constant�h�hbar�hectare�hecto�16horsepower�hour�hp�inch�k�kgf�kibi�kilo�kilogram_force�kmh�knot�	lambda2nu�lb�lbf�17light_year�liter�litre�long_ton�m_e�m_n�m_p�m_u�mach�mebi�mega�18metric_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�quecto�quetta�ronna�ronto�	short_ton�sigma�slinch�slug�speed_of_light�speed_of_sound�stone�survey_foot�survey_mile�tebi�tera�ton_TNT�torr�19troy_ounce�20troy_pound�u�week�yard�year�yobi�yocto�yotta�zebi�zepto�zero_Celsius�zetta��gꌠ9Y>)Fg���qىEg���yCx�DgP����KDg�Ngm��Cg4&�kCg��mBge��Ag��.Ag@�@gY@g$@g�������?g{�G�z�?g����MbP?g�����ư>g��&�.>g�-���q=gV瞯�<g�C��]r2<gO�21��;g�����W�:g<�6��S:g����KH�9iii@ll l�F�Pzspeed of light in vacuumzvacuum mag. permeabilityzvacuum electric permittivityzPlanck constantzreduced Planck constantz!Newtonian constant of gravitationz standard acceleration of gravityzelementary chargezmolar gas constantzfine-structure constantzAvogadro constantzBoltzmann constantzStefan-Boltzmann constantz)Wien wavelength displacement law constantzRydberg constantg�̔�?iXg�22F%u�?���i�i�i�g-C��6*?z
electron masszproton masszneutron masszatomic mass constant��<gN@��img�v@�i�i��Hg;p�jځ�?i�g�@g�����|�=g6-]jABzstandard atmospheregj�@i�g��@i(�����*g�����r?�gHu@gfffffq@gr�q��?g#��~j�@g:��H�@gH�����z>i&g�h㈵��>�valz
npt.ArrayLike�	old_scale�	new_scale�returncCst|�}t||dd�}|��dvr|t}n/|��dvr|}n&|��dvr0|dddt}n|��d	vr=|dd}ntd23|�d���|��dvrQ|t}|S|��dvr[|}|S|��dvrm|tddd}|S|��d	vr{|dd}|Std|�d
���)a]24    Convert from a temperature scale to another one among Celsius, Kelvin,25    Fahrenheit, and Rankine scales.26 27    Parameters28    ----------29    val : array_like30        Value(s) of the temperature(s) to be converted expressed in the31        original scale.32    old_scale : str33        Specifies as a string the original scale from which the temperature34        value(s) will be converted. Supported scales are Celsius ('Celsius',35        'celsius', 'C' or 'c'), Kelvin ('Kelvin', 'kelvin', 'K', 'k'),36        Fahrenheit ('Fahrenheit', 'fahrenheit', 'F' or 'f'), and Rankine37        ('Rankine', 'rankine', 'R', 'r').38    new_scale : str39        Specifies as a string the new scale to which the temperature40        value(s) will be converted. Supported scales are Celsius ('Celsius',41        'celsius', 'C' or 'c'), Kelvin ('Kelvin', 'kelvin', 'K', 'k'),42        Fahrenheit ('Fahrenheit', 'fahrenheit', 'F' or 'f'), and Rankine43        ('Rankine', 'rankine', 'R', 'r').44 45    Returns46    -------47    res : float or array of floats48        Value(s) of the converted temperature(s) expressed in the new scale.49 50    Notes51    -----52    .. versionadded:: 0.18.053 54    Examples55    --------56    >>> from scipy.constants import convert_temperature57    >>> import numpy as np58    >>> convert_temperature(np.array([-40, 40]), 'Celsius', 'Kelvin')59    array([ 233.15,  313.15])60 61    T��xpZsubok)Zcelsiusr&)ZkelvinrX)Z62fahrenheit�f� r��	)Zrankine�rz63old_scale=zN is unsupported: supported scales are Celsius, Kelvin, Fahrenheit, and Rankinez64new_scale=zV is unsupported: supported scales are 'Celsius', 'Kelvin', 'Fahrenheit', and 'Rankine')rr�lowerr��NotImplementedError)r�r�r�r�Z_valZtempo�res�r���E:\DocsHouse\542 percep lab latest\PerceptionLab\PerceptionLab_Portable\python_embed\Lib\site-packages\scipy/constants/_constants.pyr,�s0,65�66���r,�lambda_cC�t|�}tt||dd�S)aL67    Convert wavelength to optical frequency68 69    Parameters70    ----------71    lambda_ : array_like72        Wavelength(s) to be converted.73 74    Returns75    -------76    nu : float or array of floats77        Equivalent optical frequency.78 79    Notes80    -----81    Computes ``nu = c / lambda`` where c = 299792458.0, i.e., the82    (vacuum) speed of light in meters/second.83 84    Examples85    --------86    >>> from scipy.constants import lambda2nu, speed_of_light87    >>> import numpy as np88    >>> lambda2nu(np.array((1, speed_of_light)))89    array([  2.99792458e+08,   1.00000000e+00])90 91    Tr��rr&r)r�r�r�r�r�r_3�r_�nucCr�)aL92    Convert optical frequency to wavelength.93 94    Parameters95    ----------96    nu : array_like97        Optical frequency to be converted.98 99    Returns100    -------101    lambda : float or array of floats102        Equivalent wavelength(s).103 104    Notes105    -----106    Computes ``lambda = c / nu`` where c = 299792458.0, i.e., the107    (vacuum) speed of light in meters/second.108 109    Examples110    --------111    >>> from scipy.constants import nu2lambda, speed_of_light112    >>> import numpy as np113    >>> nu2lambda(np.array((1, speed_of_light)))114    array([  2.99792458e+08,   1.00000000e+00])115 116    Tr�r�)r�r�r�r�r�rzRr�rz)��__doc__�mathZ_math�typingrrZ_codatarZ_cdZnumpy.typingZnptZscipy._lib._array_apirr�__all__r��sqrtrKrLr�r�r�r�r;rr�rJrlr[rSr1r.r+rrrnrwr�r=r r�r�r�r�rZrkrIr�r~r<r�r�r&r�rvr9rPrrQr
rOrDr4r8rrHrr?rrrXr	r�rrrrNrmrMr`r�r%r�r�r|r{r�rer�r�r�r*rfr6rhr�rgryrir�rr/rrrrrsrUr-r�r�rrWrCr�rqrpr�r�r�r�rxr>rror!rrbr}rrr"r�rtr�rRrrdrcrErFr@rAr$r#rGrBr]rurjr�r^r�r0r5r7r'r)r(r:rr117rr�rVrTr2r3rar�rYr\�strr,r_rzr�r�r�r��<module>s		'���118�O
Aluode/PerceptionLabPortable · CoolFace