Using VB to find determinants

  • Thread starter Shahil
  • Start date
  • #1
117
16

Main Question or Discussion Point

hey,

:eek:

I want to use Visual Basic to create a programme that finds the determinant of a 4 x 4 matrix. I have some code and an idea how to do it but the process doesn't use arrays and is bloody long and doesn't work perfectly.

My problem with the arrays is that I can't seem to get the right variables to compute the correct values so to find the determinant.

ta
 

Answers and Replies

  • #2
8
0
shahil,

take upper bound of first part of arry and put second under that , this is nice example of nested "For Loop"

Rahul
 
  • #3
102
0
Two questions first:

Are you using a 2-dimensional array?
How is the data encoded.

I'd suggest hard coding the array at first just to see it working. It is a lot of copying and pasting.
 
  • #4
AKG
Science Advisor
Homework Helper
2,565
4
I remember you asked this question before. You also said you got 95% on the assignment, so you probably have some idea what to do. Remember this thread? You can check out the code there, and ask questions if you don't understand. Of course, it's not in VB, I'm guessing I wrote it in more of a C++-ish language, but if you can get the ideas right it shouldn't be hard to parse that to VB.
 

Related Threads on Using VB to find determinants

  • Last Post
Replies
17
Views
2K
  • Last Post
Replies
3
Views
2K
  • Last Post
Replies
1
Views
3K
Replies
14
Views
9K
  • Last Post
Replies
2
Views
2K
  • Last Post
Replies
1
Views
1K
  • Last Post
Replies
2
Views
1K
  • Last Post
Replies
4
Views
4K
  • Last Post
Replies
4
Views
2K
Replies
1
Views
2K
Top