
    sg                     h    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ee	      Z e       Zy)
z3Constants (like hbar) related to quantum mechanics.    )NumberSymbol)	Singleton)
prettyFormNhbarHBarc                   B    e 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y
)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                 .    t        j                  d|      S )NgcΦ8)mlib
from_float)selfprecs     R/var/www/html/venv/lib/python3.12/site-packages/sympy/physics/quantum/constants.py_as_mpf_valzHBar._as_mpf_val)   s    ~t44    c                      y)NzHBar()r	   r   printerargss      r   
_sympyreprzHBar._sympyrepr,       r   c                      y)Nr   r	   r   s      r   	_sympystrzHBar._sympystr/   s    r   c                 F    |j                   rt        d      S t        d      S )Nu   ℏr   )_use_unicoder   r   s      r   _prettyzHBar._pretty2   s"    ?@@&!!r   c                      y)Nz\hbarr	   r   s      r   _latexzHBar._latex7   r   r   N)__name__
__module____qualname____doc__is_realis_positiveis_negativeis_irrational	__slots__r   r   r   r   r   r	   r   r   r   r      s;     GKKMI5"
r   )	metaclass)r"   sympy.core.numbersr   sympy.core.singletonr    sympy.printing.pretty.stringpictr   mpmath.libmplibmpr   __all__r   r   r	   r   r   <module>r/      s;    9 + * 7  
&<9 &R vr   