How to calculate the numerical integral of the type $ \int_a^b e^{x^2} dx $ efficiently?
My problem is:
we need to compute repeatly the integral:
$ \frac{\int_{|m|=1}mm \exp(B\mathbin:mm)\,dm}{\int_{|m|=1}\exp(B\mathbin:mm)\,dm}$ where
- $:$ means $A\mathbin:B=\sum_{i,j}A(i,j)*B(j,i)$
- m is a 1 dimensional tensor, $m \in R^{1\times 3}$
- B is a traceless diagonalizable two dimensional tensor.
- $mm$ means the tensor product $m \otimes m$