| Server IP : 93.86.61.54 / Your IP : 216.73.216.206 Web Server : Apache/2.4.62 (Ubuntu) System : Linux rasin.ddns.net 6.8.0-124-generic #124~22.04.1-Ubuntu SMP PREEMPT_DYNAMIC Tue May 26 21:05:19 UTC x86_64 User : www-data ( 33) PHP Version : 8.4.22 Disable Function : NONE MySQL : OFF | cURL : ON | WGET : ON | Perl : ON | Python : OFF | Sudo : ON | Pkexec : ON Directory : /usr/lib/python3/dist-packages/sympy/physics/__pycache__/ |
Upload File : |
o
�8Va� � @ sX d dl mZmZmZ d dlmZmZmZmZm Z d dl
mZ dd� Zdd� Z
dd � Zd
S )� )�S�pi�Rational)�hermite�sqrt�exp� factorial�Abs)�hbarc C s| t t| |||g�\} }}}|| t }|t tdd� tdd| t| � � }|t| |d d � t| t|�| � S )aZ
Returns the wavefunction psi_{n} for the One-dimensional harmonic oscillator.
Parameters
==========
``n`` :
the "nodal" quantum number. Corresponds to the number of nodes in the
wavefunction. ``n >= 0``
``x`` :
x coordinate.
``m`` :
Mass of the particle.
``omega`` :
Angular frequency of the oscillator.
Examples
========
>>> from sympy.physics.qho_1d import psi_n
>>> from sympy.abc import m, x, omega
>>> psi_n(0, x, m, omega)
(m*omega)**(1/4)*exp(-m*omega*x**2/(2*hbar))/(hbar**(1/4)*pi**(1/4))
� � � ) �mapr r
r r r r r r )�n�x�m�omega�nu�C� r �6/usr/lib/python3/dist-packages/sympy/physics/qho_1d.py�psi_n s *,r c C s t | | tj S )a
Returns the Energy of the One-dimensional harmonic oscillator.
Parameters
==========
``n`` :
The "nodal" quantum number.
``omega`` :
The harmonic oscillator angular frequency.
Notes
=====
The unit of the returned value matches the unit of hw, since the energy is
calculated as:
E_n = hbar * omega*(n + 1/2)
Examples
========
>>> from sympy.physics.qho_1d import E_n
>>> from sympy.abc import x, omega
>>> E_n(x, omega)
hbar*omega*(x + 1/2)
)r
r �Half)r r r r r �E_n* s r c C s* t t|�d d �|| tt| �� S )a
Returns <n|alpha> for the coherent states of 1D harmonic oscillator.
See https://en.wikipedia.org/wiki/Coherent_states
Parameters
==========
``n`` :
The "nodal" quantum number.
``alpha`` :
The eigen value of annihilation operator.
r
)r r r r )r �alphar r r �coherent_stateJ s *r N)�
sympy.corer r r �sympy.functionsr r r r r �sympy.physics.quantum.constantsr
r r r r r r r �<module> s $