Eigenvalues NaN and inf

Suppose I have a system AX = nBX where A and B are known martrices, X is the coefficient matrix.

I am solving this using Chebyshev polynomials.

BC's are u(-1)=0=u(1)

I am imposing the bc's for the first and last rows of matrices A and B.

e=solve(A,B)

e[1]=0

e[-1]=0

x=solve(A,e)

What is wrong with this?

Answers


The question you seem to be asking: how come a generalized eigenvalue problem has eigenvalues inf and nan?

Your generalized eigenvalue problem is singular and has eigenvalues lambda=alpha/beta such that (alpha=0, beta=0) and (alpha!=0, beta=0). Since eigvals reports the eigenvalues, they are 0/0=nan or x/0=inf, correspondingly.

http://www.netlib.org/lapack/lug/node35.html

If your problem shouldn't have such eigenvalues, then it's likely that there is an error in the construction of the matrices.


Need Your Help

Check bluetooth state in iOS

ios bluetooth ios6 iphone-privateapi

I have an application (I am not going to submit this app to apple app store) using which I want to check whether bluetooth is turned on. If it is turned on then I have to display an alert.

Cocoa multi window drag and drop example

macos cocoa drag-and-drop multi-window

I am looking for a cocoa example that illustrates how to drag an image from one window to another. If not I would like to see an example that shows dragging an image from a source and destination ...