lime/ToBeErased/FranckCondon/SimpleOscillator.py
def laguerre(a, n):
    """
        Generates the nth laguerre polynomial with superscript a
        using the Rodrigues formula.
    """
    # function = lambda x: ((x ** -a)*(math.exp(x))/(math.factorial(n))) #incomplete
    x = sym.Symbol('x')
    subFunction = (sym.exp(-x) * (x ** (a+n))).diff(x, n)
    L = ((x ** -a)*(sym.exp(x))/(sym.factorial(n))) * subFunction
    L = sym.simplify(L)
    #print "Laguerre", L
    l = sym.lambdify(x, L)
    return l

        Generates the nth laguerre polynomial with superscript a
        using the Rodrigues formula.
    
Generates the nth laguerre polynomial with superscript a
using the Rodrigues formula.
Generates the nth laguerre polynomial with superscript a using the Rodrigues formula .
def laguerre(a, n):
    x = sym.Symbol('x')
    subFunction = (sym.exp(-x) * (x ** (a+n))).diff(x, n)
    L = ((x ** -a)*(sym.exp(x))/(sym.factorial(n))) * subFunction
    L = sym.simplify(L)
    l = sym.lambdify(x, L)
    return l
def laguerre ( a , n ) : x = sym . Symbol ( 'x' ) subFunction = ( sym . exp ( - x ) * ( x ** ( a + n ) ) ) . diff ( x , n ) L = ( ( x ** - a ) * ( sym . exp ( x ) ) / ( sym . factorial ( n ) ) ) * subFunction L = sym . simplify ( L ) l = sym . lambdify ( x , L ) return l
Generates the nth laguerre polynomial with superscript a
using the Rodrigues formula.
Generates the nth laguerre polynomial with superscript a using the Rodrigues formula .
"""
        Generates the nth laguerre polynomial with superscript a
        using the Rodrigues formula.
    """ # function = lambda x: ((x ** -a)*(math.exp(x))/(math.factorial(n))) #incomplete #print "Laguerre", L
a
n