U
    ZÊ¹jŒ  ã                   @   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 )NgÉècÎ¦…á8)ÚmlibÚ
from_float)ÚselfÚprecr   r   ú^/var/www/html/bwave/python/venv/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   þ)