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


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

NIntegrate fails to work...

Started byGQ Wang <gqwang1984@gmail.com>
First post2011-11-09 11:36 +0000
Last post2011-11-09 11:36 +0000
Articles 1 — 1 participant

Back to article view | Back to comp.soft-sys.math.mathematica


Contents

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

#6294 — NIntegrate fails to work...

FromGQ Wang <gqwang1984@gmail.com>
Date2011-11-09 11:36 +0000
SubjectNIntegrate fails to work...
Message-ID<j9dokf$b4v$1@smc.vnet.net>
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

[toc] | [standalone]


Back to top | Article view | comp.soft-sys.math.mathematica


csiph-web