# Matrix math logic with array! Need Fast Help!

• 01-12-2013
loserone+_+
Matrix math logic with array! Need Fast Help!
how to make matrix 2x2 with array?
please tell me fast, just logic what i need ...
• 01-12-2013
iMalc
Tell us what you think the answer is and we might confirm whether you are correct or not.
• 01-12-2013
loserone+_+
i dont have the code right now by the way
i just need logic to make matrix with array thing
matrix in math
example
matrix a[2],b[2];
• 01-12-2013
whiteflags
You don't need code to explain matrix math; just look up what you don't know in math before the test. :s
• 01-12-2013
loserone+_+
Quote:

Originally Posted by whiteflags
You don't need code to explain matrix math; just look up what you don't know in math before the test. :s

really?
its make matrix code is easy?
what logic to make matrix a[2],b[2];
and the result of the matrix
please! only ten minutes i have until exam :(
• 01-12-2013
stahta01
Is his/her question very vague and unclear?
I really could not answer the question because the question was contradictory. No idea if it is a programming or math question.
No idea what matrix operations where being discussed.

I just wondered if I was missing something, or do the rest of you think the question was too vague.

Tim S.
• 01-12-2013
whiteflags
It doesn't matter. Based on past experience and how the rules are applied we can't help people pass exams anyway.
• 01-12-2013
loserone+_+
so it just depend on me anyway,
actually i still had time to studying, the exam started at13.00 in my country

do u know this code use for what
setw
and #include<iomanip.h>
i find it on my friend is computer, that is one of matrix he making
• 01-13-2013
cyberfish
• 01-13-2013
AndiPersti
Quote:

Originally Posted by loserone+_+
do u know this code use for what
setw
and #include<iomanip.h>

That's C++.

Bye, Andreas
• 01-13-2013
Barney McGrew
Quote:

Originally Posted by loserone+_+
do u know this code use for what
setw
and #include<iomanip.h>

It's gibberish.

Quote:

Originally Posted by loserone+_+
i find it on my friend is computer, that is one of matrix he making

• Why was the computer on your friend?
• Why do you describe his computer as a matrix that he's making?
• 01-13-2013
QuantumNut
the question is too vague, maybe the reason is he/she might not be able to express the problem in a proper way...
you can create a 2x2 matrix like this...
Code:

`int M[2][2] = {7,10,4,11};`
What logic do you need???
What operations would you like to perform on the said matrix???
• 01-13-2013
grumpy
Quote:

Originally Posted by QuantumNut
the question is too vague, maybe the reason is he/she might not be able to express the problem in a proper way...
you can create a 2x2 matrix like this...
Code:

`int M[2][2] = {7,10,4,11};`

You might find
Code:

`int M[2][2] = {{7,10},{4,11}};`
works better.
• 01-13-2013
laserlight
Quote:

Originally Posted by grumpy
You might find
Code:

`int M[2][2] = {{7,10},{4,11}};`
works better.

They should both work the same, unless there is a bug in the compiler, except that being more explicit tends to make it easier to understand and less likely that a compiler might warn about a potential bug.
• 01-14-2013
loserone+_+
Quote:

Originally Posted by cyberfish

Because he get the c code from others, he didnt understand that
Quote:

Originally Posted by AndiPersti
That's C++.

i see, its c++ thing, so its my mistake
Quote:

Originally Posted by Barney McGrew
It's gibberish.

lol, i dont know it gibberish or not
Quote:

• Why was the computer on your friend?
• Why do you describe his computer as a matrix that he's making?
lol, what do u mean computer in your question? if u ask OS, its windows 7
lol i didnt describe his computer, i describe the code he was making, and i wonder #include<iomanip.h> and setw()i s for what?
Quote:

Originally Posted by QuantumNut
Code:

`int M[2][2] = {7,10,4,11};`
What logic do you need???
What operations would you like to perform on the said matrix???

Ah i confused to tell what is i need, and it is over yesterday,
Quote:

Originally Posted by grumpy
You might find
Code:

`int M[2][2] = {{7,10},{4,11}};`
works better.

lol i see that, and to printing variables just using printf right

The exam was over and i cant answer the question :( but its not a big problem :)