I´ve tried to calculate symbolic limit in sympy but got an error message.
import sympy as smp
from sympy import *
n,x=smp.symbols('n x')
limit(simplify(integrate(exp(-x)*exp(-smp.I*n*x),x).args[0][0]),x,smp.oo)
Error:
Result depends on the sign of -sign(I*n + 1)
In mathematics result should be 0
Can anybody explain me output and fix that?