Creating an equation library (Updated 03-FEB-2017)
|
01-16-2015, 02:44 AM
(This post was last modified: 01-16-2015 02:47 AM by Han.)
Post: #28
|
|||
|
|||
RE: Creating an equation library (updated)
Looks like the SVD command uses EIGENVV to obtain the matrix V and to determine the diagonal matrix of eigenvalues. Letting M0 be the matrix I mentioned earlier, then EIGENVV(M0*trn(M0)) gives
Code: M0:=[[3,4.5,4.5],[4.5,12.25,1.25],[4.5,1.25,12.25]]; The result: Code: { So the middle eigenvalue for M0*trn(M0) is a negative value. Take the square root and you get the eigenvalue found from doing SVD(M0). Note that the real part was dropped (likely due to roundoff). (−7.5863407865E−32)^.5 = 1.48466797577e−30+2.75433127755e−16*i I wonder if within the SVD algorithm, forcing the diagonal matrix from the eigen-decomposition to have all positive entries (they necessarily have to be, since they are supposed to be squares), would provide a quick fix for this issue. There is, of course, always the option of writing our own SVD... Graph 3D | QPI | SolveSys |
|||
« Next Oldest | Next Newest »
|
User(s) browsing this thread: 3 Guest(s)