I need to find the symbolic expression of a multivariable integral. The real integrand contains 11 variables (I have to integrate "only" four of them) so example code is simplified here:
x, y = var('x','y')
integrand = sin(x)*cos(y)
result = integrand.integral(x, 0, pi)
It works just fine generally but given the complexity of the integral no algorithm gives me a result and returns just:
integrate(sin(x)*cos(y), x, 0, pi)
Is there a built in way to numerically evaluate an integral on some variables that returns symbolic result with the numerical integration found coefficients (or constants)? Namely, in this case:
2*cos(y)