+ Reply to Thread
Page 1 of 2 12 LastLast
Results 1 to 10 of 13

Thread: Determinants Value

  1. #1
    Join Date
    Oct 2008
    Location
    Istog, Kosova
    Posts
    4,001
    Blog Entries
    1
    Rep Power
    40

    Determinants Value

    This is a very simple tutorial that shows how to create a simple program in VB6 to calculate the value of a determinant.

    First - Create 3 new forms.

    On form1 put a combo box and change its text to "Choose"
    Create a command button too and on the caption write "Go!"



    As it is shown on the screen shot on the list write "2x2" and "3x3".



    Double click on the button and write those lines of code:

    Code:
    Private Sub Command1_Click()
    If Combo1 = "2x2" Then
    Form2.Show
    Else
    Form3.Show
    End If
    Unload Me
    End Sub
    On form2 put 5 textboxes and a command button.
    Change the caption of the Command button to "Calculate"



    Double click on the Button and write this line of code:

    Code:
    Private Sub Command1_Click()
    Text5 = Text1 * Text4 - Text2 * Text3
    End Sub
    This is the formula to calculate the value of 2x2 determinant.


    On form3 put 10 textboxes and a command button.
    Change the caption of the Command button to "Calculate".



    Double click on the Button and write this line of code:

    Code:
    Private Sub Command1_Click()
    Text10 = Text1 * Text5 * Text9 + Text3 * Text4 * Text8 + Text2 * Text6 * Text7 - Text3 * Text5 * Text7 - Text1 * Text6 * Text8 - Text2 * Text4 * Text9
    End Sub
    This is the formula to calculate the value of 3x3 determinant.


    This is my first tutorial ever so, I apologize for any mistakes.

    PS: Thanx to SaintLion
    Interested in participating in community events?
    Want to harness your programming skill and turn it into absolute prowess?
    Come join our programming events!

  2. CODECALL Circuit advertisement
    Join Date
    Always
    Location
    Advertising world
    Posts
    Many

     
  3. #2
    Join Date
    Jul 2006
    Posts
    16,491
    Blog Entries
    75
    Rep Power
    143

    Re: Determinants Value

    Cool tutorial! Do you know how to do determinants on larger matrices?
    Programming is a branch of mathematics.
    My CodeCall Blog | My Personal Blog

  4. #3
    Join Date
    Nov 2008
    Location
    Kosovo.
    Posts
    2,391
    Rep Power
    30

    Re: Determinants Value

    Great Job MathXpert !! +rep

  5. #4
    Join Date
    Oct 2008
    Location
    Istog, Kosova
    Posts
    4,001
    Blog Entries
    1
    Rep Power
    40

    Re: Determinants Value

    Thank u both

    @WP: Yes I do
    Interested in participating in community events?
    Want to harness your programming skill and turn it into absolute prowess?
    Come join our programming events!

  6. #5
    Join Date
    Oct 2008
    Posts
    4,060
    Blog Entries
    6
    Rep Power
    45

    Re: Determinants Value

    Nice First Tutorial! +rep
    Interested in participating in community events?
    Want to harness your programming skill and turn it into absolute prowess?
    Come join our programming events!

  7. #6
    Join Date
    Oct 2008
    Location
    Istog, Kosova
    Posts
    4,001
    Blog Entries
    1
    Rep Power
    40

    Re: Determinants Value

    Thanx dude!
    Interested in participating in community events?
    Want to harness your programming skill and turn it into absolute prowess?
    Come join our programming events!

  8. #7
    Join Date
    Sep 2008
    Location
    Kosovo
    Posts
    4,032
    Rep Power
    44

    Re: Determinants Value

    nice one bro .. keep up your work .. +rep

  9. #8
    SaintLion's Avatar
    SaintLion is offline Programmer
    Join Date
    Oct 2008
    Posts
    173
    Rep Power
    0

    Re: Determinants Value

    Nice work bro(thnx to me) +rep

  10. #9
    Jordan Guest

    Re: Determinants Value

    Very nice tutorial! +rep

  11. #10
    Join Date
    Aug 2007
    Location
    Gizeh, Al Jizah, Egypt, Egypt
    Posts
    8,675
    Blog Entries
    12
    Rep Power
    81

    Re: Determinants Value

    nice tutorial
    deserves a +rep indeed
    yo homie i heard you like one-line codes so i put a one line code that evals a decrypted one line code that prints "i love one line codes"
    Code:
    eval(base64_decode("cHJpbnQgJ2kgbG92ZSBvbmUtbGluZSBjb2Rlcyc7"));
    www.amrosama.com | the unholy methods of javascript

+ Reply to Thread
Page 1 of 2 12 LastLast

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Tags for this Thread

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts