def fourier_sin_seq(func, limits, n):
    from sympy.integrals import integrate
    x, L = limits[0], limits[2] - limits[1]
    sin_term = sin(2*n*pi*x / L)
    return SeqFormula(2 * sin_term * integrate(func * sin_term, limits)
                      / L, (n, 1, oo))
Returns the sin sequence in a Fourier series
dataset/ETHPy150Open sympy/sympy/sympy/series/fourier.py/fourier_sin_seq