B
    [                 @   sv   d Z ddlmZmZ ddlmZ ddlmZ ddlm	Z	 ddl
mZ ddlmZ dgZG d	d
 d
e	eeZe ZdS )z3Constants (like hbar) related to quantum mechanics.    )print_functiondivision)NumberSymbol)	Singleton)with_metaclass)
prettyFormNhbarc               @   sL   e Zd ZdZdZdZdZdZg Zdd Z	dd Z
dd	 Zd
d Zdd ZdS )HBara)  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] http://en.wikipedia.org/wiki/Planck_constant
    TFc             C   s   t d|S )NgcΦ8)mlibZ
from_float)selfZprec r   >lib/python3.7/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   r   r   	_sympystr1   s    zHBar._sympystrc             G   s   |j rtdS tdS )Nu   ℏr   )Z_use_unicoder   )r   r   r   r   r   r   _pretty4   s    zHBar._prettyc             G   s   dS )Nz\hbarr   )r   r   r   r   r   r   _latex9   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   r	   )r   Z
__future__r   r   Zsympy.core.numbersr   Zsympy.core.singletonr   Zsympy.core.compatibilityr   Z sympy.printing.pretty.stringpictr   Zmpmath.libmpZlibmpr
   __all__r	   r   r   r   r   r   <module>   s   )