'How to solve this math: TypeError: cannot determine truth value of Relational
How can I solve the integrated math with Python?

Here is my code:
import scipy.integrate
import sympy as sp
import math
x= sp.Symbol('x')
y= sp.Symbol('y')
f= lambda x,y: sp.exp(sp.cos(3*x**2-2*y))+(sp.sin(5*x**2+3*x*y**4))/sp.ln(x*y**3+5*y**5)-sp.tan(7*y*x**3+2*x*y)
g= lambda x:0
h= lambda x:2
i, e = scipy.integrate.dblquad(f,x,sp.sqrt(x**2+5),g,h) #error line
i
Error:
TypeError: cannot determine truth value of Relational
Image:

Sources
This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.
Source: Stack Overflow
| Solution | Source |
|---|
