Source Code VB6 to calculate eigenvector and eigenvalue?

Source Code VB6 to calculate eigenvector and eigenvalue? matrix with dimention nxn
thanks
harry2228Asked:
Who is Participating?
 
kbireckiConnect With a Mentor Commented:
In the mean time, here an option to consider:

Matrix ActiveX Component - http://www.bluebit.gr/matrix/ - $59
0
 
DhaestCommented:
A Function That Computes the Eigenvalues and Eigenvectors For a Real Symmetric Matrix

http://www.freevbcode.com/ShowCode.asp?ID=9209
0
 
harry2228Author Commented:
can give me some example how to use this function?thanks
0
Keep up with what's happening at Experts Exchange!

Sign up to receive Decoded, a new monthly digest with product updates, feature release info, continuing education opportunities, and more.

 
kbireckiCommented:
You populate an array and pass that as the parameter, and assign the results of the function to an array.  Such as:

Dim jk_source(2,2)
Dim jk_results(2,2)

'populate the array - it's been too long to remember what reasonable values should be, 
'and my textbook is at work, but do something like this
jk_source(0,0) = value1
jk_source(0,1) = value1
jk_source(1,0) = value1
jk_source(1,1) = value1

jk_target = EIGEN_JK(jk_source)

Open in new window

0
 
harry2228Author Commented:
thanks for the answer.. but i still get error "object required". can help me to solve this one? thanks
0
 
TommySzalapskiCommented:
Um... finding eigenvectors involves generally involves solving the characteristic polynomial so for n>=5, this becomes quite a problem (since it has been proven impossible to come up with a general solution for such polynomials).

The code kbirecki linked to only works for symmetric matrices and is also only an approximation.

What exactly is the purpose of the code? Is n bounded by some low limit (like 3 or something)?
0
 
kbireckiCommented:
Tommy sounds right on this.  I was just trying to fill in the blank using the link Dheast provided.  But, I'm at work, and I'm grabbing my Elementary Differential Equations and Boundary Value Problems text book from college.  And it says...wait....let me read a little here...umm, I think I'll need a little time to refresh my memory.  I'll read it tonight and see if I can come up with some help.  If anyone else has a solution, maybe they can chime in.
0
 
kbireckiCommented:
I apologize for the delay, but I've been trying to go back and review the fundamentals for this.  It's been a while.  I don't yet have an answer, but hopefully someone else will come along and help.  I'll continue working on this as I can, unless someone else gives you a solution.  That's the best I can do right now.
0
 
TommySzalapskiCommented:
Based on the other question from you that I just saw, I would also recommend either MATLAB or C++ with OpenCV for intense matrix calculations. Again you will find that it's much faster and there's much more free (and not free) code out there for those languages for anything heavily math related.
0
 
harry2228Author Commented:
thanks
0
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.