(n, a, x)
return C * sin(pi * n * x / a)
Returns the wavefunction X_{n} for an infinite 1D box

    ``n``
        the "principal" quantum number. Corresponds to the number of nodes in
        the wavefunction.  n >= 0
    ``a``
        width of the well. a > 0
    ``x``
        x coordinate.
Returns the wavefunction X_{n} for an infinite 1D box
Returns the wavefunction X_ { n } for an infinite 1D box
def X_n(n, a, x):
    """
    Returns the wavefunction X_{n} for an infinite 1D box

    ``n``
        the "principal" quantum number. Corresponds to the number of nodes in
        the wavefunction.  n >= 0
    ``a``
        width of the well. a > 0
    ``x``
        x coordinate.
    """
    n, a, x = map(S, [n, a, x])
    C = sqrt(2 / a)
    return C * sin(pi * n * x / a)
def X_n ( n , a , x ) : n , a , x = map ( S , [ n , a , x ] ) C = sqrt ( 2 / a ) return C * sin ( pi * n * x / a )