U
    	-e                     @   sZ   d Z ddlmZ ddlmZ ddlmZ ddlmZ	 ddgZ
G dd deed	Ze ZdS )
z3Constants (like hbar) related to quantum mechanics.    )NumberSymbol)	Singleton)
prettyFormNhbarHBarc                   @   sL   e Zd ZdZdZdZdZdZdZdd Z	dd Z
d	d
 Zdd Zdd ZdS )r   a*  Reduced Plank's constant in numerical and symbolic form [1]_.

    Examples
    ========

        >>> from sympy.physics.quantum.constants import hbar
        >>> hbar.evalf()
        1.05457162000000e-34

    References
    ==========

    .. [1] https://en.wikipedia.org/wiki/Planck_constant
    TF c                 C   s   t d|S )NgcΦ8)mlib
from_float)selfprecr   r   `/var/www/html/Darija-Ai-Train/env/lib/python3.8/site-packages/sympy/physics/quantum/constants.py_as_mpf_val)   s    zHBar._as_mpf_valc                 G   s   dS )NzHBar()r   r
   printerargsr   r   r   
_sympyrepr,   s    zHBar._sympyreprc                 G   s   dS )Nr   r   r   r   r   r   	_sympystr/   s    zHBar._sympystrc                 G   s   |j rtdS tdS )Nu   ℏr   )Z_use_unicoder   r   r   r   r   _pretty2   s    zHBar._prettyc                 G   s   dS )Nz\hbarr   r   r   r   r   _latex7   s    zHBar._latexN)__name__
__module____qualname____doc__Zis_realZis_positiveZis_negativeZis_irrational	__slots__r   r   r   r   r   r   r   r   r   r      s   )	metaclass)r   Zsympy.core.numbersr   Zsympy.core.singletonr   Z sympy.printing.pretty.stringpictr   Zmpmath.libmpZlibmpr   __all__r   r   r   r   r   r   <module>   s   )