Programming Forums
User Name Password Register
 

RSS Feed
FORUM INDEX | TODAY'S POSTS | UNANSWERED THREADS | ADVANCED SEARCH

Reply
 
Thread Tools Display Modes
Old Mar 9th, 2007, 10:36 PM   #1
PhilBon
Hobbyist Programmer
 
PhilBon's Avatar
 
Join Date: Nov 2005
Posts: 172
Rep Power: 4 PhilBon is on a distinguished road
Send a message via AIM to PhilBon Send a message via MSN to PhilBon
2-dimensional matrices

Alright, so tomorrow, I am going to a programming competition for high schoolers and they informed us that we should look up information about manipulate 2-dimensional matrices in various ways. I know about matrix that are used in Algebra 2, but I hardly remember ANY of it as well as I don't know if they are the same as used in a programming situation. So I am asking for help. Could you guys help let me know what kind of matrix they might be talking about. I am thinking they are talking about 2-D arrays (which creating and working with I know how to do). Could you guys give me some insight about, adding them, subtracting them, multiplying them, devising them, my teacher said something about inverses. Anything will help. And sorry to anyone if I should have posted this in a different way, or you think I'm a little kid.
PhilBon is offline   Reply With Quote
Old Mar 10th, 2007, 12:18 PM   #2
Ooble
I eat cake for breakfast.
 
Ooble's Avatar
 
Join Date: Jul 2004
Location: In my box.
Posts: 4,434
Rep Power: 9 Ooble is on a distinguished road
OK, adding and subtracting matrices is easy - just add/subtract each element in the second matrix to the corresponding element in the first.

Finding the determinant is better explained by Wikipedia than by me - click.

To invert a square matrix, click. Essentially, you find the matrix of cofactors, transpose it (mirror it along the line from top-left to bottom-right), and divide the entire matrix by the determinant.

And finally, in order to multiply a matrix with either a scalar or a vector, you should check this out.
__________________
Me :: You :: Them
Ooble is offline   Reply With Quote
Reply

Bookmarks

« Previous Thread in Forum | Next Thread in Forum »

Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
multi dimensional array error veiga2 C++ 2 Nov 16th, 2006 4:05 AM
Multiplying Matricies help Thanatos5142 Java 8 Oct 23rd, 2006 8:26 PM
geometric series with Matrices brad sue C 3 Mar 6th, 2006 3:14 AM
Matrices and Defining my Array Question TecBrain C++ 2 Mar 2nd, 2005 5:46 PM
Matrices Tutorial. TecBrain C++ 1 Feb 26th, 2005 5:03 PM




DaniWeb IT Discussion Community
All times are GMT -5. The time now is 3:39 AM.

Powered by vBulletin® Version 3.7.0, Copyright ©2000 - 2009, Jelsoft Enterprises Ltd.
Copyright ©2007 DaniWeb® LLC