import sympy as sp
from math import *
n = sp.symbols('n')
T = 2
wo = (2*sp.pi)/T
fn = ((-1j)/n*sp.pi)*(sp.sin((n*wo)/2)/((n*wo)/2))*sp.euler((-1j*n*wo)/2)
gt = 0
print(sp.euler)
for i in range(1, 30):
    gt += (2*sp.pi*((-1j)/(n*sp.pi))*((sp.sin((n*wo)/2))/((n*wo)/2))*sp.euler((-1j*n*wo)/2)).subs(n, i)
sp.plot(gt)
7ab49aaba4de7f6661cca697016e63ec08c977d8
<mask token>

<mask token>
print(sp.euler)
for i in range(1, 30):
    gt += (2 * sp.pi * (-1.0j / (n * sp.pi)) * (sp.sin(n * wo / 2) / (n *
        wo / 2)) * sp.euler(-1.0j * n * wo / 2)).subs(n, i)
sp.plot(gt)

<mask token>
n = sp.symbols('n')
T = 2
wo = 2 * sp.pi / T
fn = -1.0j / n * sp.pi * (sp.sin(n * wo / 2) / (n * wo / 2)) * sp.euler(-
    1.0j * n * wo / 2)
gt = 0
print(sp.euler)
for i in range(1, 30):
    gt += (2 * sp.pi * (-1.0j / (n * sp.pi)) * (sp.sin(n * wo / 2) / (n *
        wo / 2)) * sp.euler(-1.0j * n * wo / 2)).subs(n, i)
sp.plot(gt)

import sympy as sp
from math import *
n = sp.symbols('n')
T = 2
wo = 2 * sp.pi / T
fn = -1.0j / n * sp.pi * (sp.sin(n * wo / 2) / (n * wo / 2)) * sp.euler(-
    1.0j * n * wo / 2)
gt = 0
print(sp.euler)
for i in range(1, 30):
    gt += (2 * sp.pi * (-1.0j / (n * sp.pi)) * (sp.sin(n * wo / 2) / (n *
        wo / 2)) * sp.euler(-1.0j * n * wo / 2)).subs(n, i)
sp.plot(gt)

import sympy as sp
from math import *
n = sp.symbols('n')
T = 2
wo = (2*sp.pi)/T
fn = ((-1j)/n*sp.pi)*(sp.sin((n*wo)/2)/((n*wo)/2))*sp.euler((-1j*n*wo)/2)
gt = 0
print(sp.euler)
for i in range(1, 30):
    gt += (2*sp.pi*((-1j)/(n*sp.pi))*((sp.sin((n*wo)/2))/((n*wo)/2))*sp.euler((-1j*n*wo)/2)).subs(n, i)
sp.plot(gt)