F[y_?NumericQ] := Eigenvectors@( {
{1, y},
{y, 1}
} );
G[x_?NumericQ] := NIntegrate[F[y][[1]].F[y][[1]], {y, 0, 2}];
G[4]
The program simply doesn't work in this way. Changing y_?NumericQ
to y_
doesn't help since then the Eigenvectors
would be evaluated in symbolic method (which I don't want). How can it be solved?