Referencing the other answers you don't need to use trigintegrate
but you do need to supply the integration limits when calling integrate
if it is a definite integral:
In [31]: from sympy import integrate, sin, oo, Symbol
In [32]: x = Symbol('x')
In [33]: integrate(sin(x**2), (x, 0, oo))
Out[33]:
√2?√π
─────
4
In [34]: _.n()
Out[34]: 0.626657068657750
与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…