Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.soft-sys.math.mathematica > #6294

NIntegrate fails to work...

From GQ Wang <gqwang1984@gmail.com>
Newsgroups comp.soft-sys.math.mathematica
Subject NIntegrate fails to work...
Date 2011-11-09 11:36 +0000
Organization Steven M. Christensen and Associates, Inc and MathTensor, Inc.
Message-ID <j9dokf$b4v$1@smc.vnet.net> (permalink)

Show all headers | View raw


Hi guys,

I came across this problem in my calculation:

I have G(x, y), which is a very complicated matrix function of x and
y. The integrand of my problem, denoted by f(G(x, y)), is a function
of the eigenvalues and eigenvectors of G(x, y), and so naturally is a
function of x and y.

G(x, y) is formally so complicated that it's impractical to be
diagonalized symbolically on the level of variables x and y. When I
indeed tried this symbolic calculation, I get the error message

 
Eigenvectors::eivec0: Unable to find all eigenvectors. >>

and get the zero vector as the result.

So I thought numerical integration should be the way to go. The
procedure in my mind goes like this: write down G(x, y) numerically
for each (x0, y0) point which appeared in the numerical integration,
diagonalize the numerical matrix, calculate the eigenvectors and
eigenvalues, and then calculate f(G(x0, y0)). In this way, at least in
principle, the numerical integration could be performed.
The code goes like
G[x_, y_]:=...
f[x_,y_]:=...
NIntegrate[f[x, y],{x, xmin, xmax}, {y, ymin, ymax}]

But it did not work out. The reason probably is, I suspect (based on
the same error message that I received), that mathematica evaluates
the integrand at each (x0, y0) point using something like
f(G(x, y))/{x->x0, y->y0},
which requires the explicit form of the integrand f(G(x, y)), which,
as I have mentioned, mathematica fails to calculate symbolically.

So, my question is, how should I proceed... It seemed such an innocent
problem.

Thanks a lot guys.

Cheers,
GQ

Back to comp.soft-sys.math.mathematica | Previous | Next | Find similar | Unroll thread


Thread

NIntegrate fails to work... GQ Wang <gqwang1984@gmail.com> - 2011-11-09 11:36 +0000

csiph-web