o
    jg                     @   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   W/var/www/html/zoom/venv/lib/python3.10/site-packages/sympy/physics/quantum/constants.py_as_mpf_val)   s   zHBar._as_mpf_valc                 G      dS )NzHBar()r   r
   printerargsr   r   r   
_sympyrepr,      zHBar._sympyreprc                 G   r   )Nr   r   r   r   r   r   	_sympystr/   r   zHBar._sympystrc                 G   s   |j rtdS tdS )Nu   ℏr   )_use_unicoder   r   r   r   r   _pretty2   s   zHBar._prettyc                 G   r   )Nz\hbarr   r   r   r   r   _latex7   r   zHBar._latexN)__name__
__module____qualname____doc__is_realis_positiveis_negativeis_irrational	__slots__r   r   r   r   r   r   r   r   r   r      s    )	metaclass)r   sympy.core.numbersr   sympy.core.singletonr    sympy.printing.pretty.stringpictr   mpmath.libmplibmpr   __all__r   r   r   r   r   r   <module>   s    
)