examples/standalone_namd.py
def gwp(x, a, x0, k0):
    """
    a gaussian wave packet of width a, centered at x0, with momentum k0
    """
    return ((a * np.sqrt(np.pi)) ** (-0.5)
            * np.exp(-0.5 * ((x - x0) * 1. / a) ** 2 + 1j * x * k0))

    a gaussian wave packet of width a, centered at x0, with momentum k0
    
a gaussian wave packet of width a, centered at x0, with momentum k0
a gaussian wave packet of width a centered at x0 with momentum k0
def gwp(x, a, x0, k0):
    return ((a * np.sqrt(np.pi)) ** (-0.5)
            * np.exp(-0.5 * ((x - x0) * 1. / a) ** 2 + 1j * x * k0))
def gwp ( x , a , x0 , k0 ) : return ( ( a * np . sqrt ( np . pi ) ) ** ( - 0.5 ) * np . exp ( - 0.5 * ( ( x - x0 ) * 1. / a ) ** 2 + 1j * x * k0 ) )
a gaussian wave packet of width a, centered at x0, with momentum k0
a gaussian wave packet of width a centered at x0 with momentum k0
"""
    a gaussian wave packet of width a, centered at x0, with momentum k0
    """
x
a
x0
k0