We use cookies to ensure you have the best browsing experience on our website. Please read our cookie policy for more information about how we use cookies.
- Prepare
- Mathematics
- Linear Algebra Foundations
- Linear Algebra Foundations #1 - Matrix Addition
- Discussions
Linear Algebra Foundations #1 - Matrix Addition
Linear Algebra Foundations #1 - Matrix Addition
Sort by
recency
|
26 Discussions
|
Please Login in order to post a comment
include
int main() { int A[3][3] = { {1, 2, 3}, {2, 3, 4}, {1, 1, 1} };
}
Matrix Addition
Add the two matrices given below and find the integers corresponding to , , , , , , , , and :
[1 2 3] [4 5 6] [a b c] [2 3 4] + [7 8 9] = [d e f] [1 1 1] [4 5 7] [g h i] To submit your answer, enter the resultant values of each of the nine integers (i.e., , , , , , , , , and ) on a new line and click Submit Code.
Input Format
There is no input for this challenge; calculate the values of through using the matrices given above.
Output Format
In the text box below, enter the values of each of the nine integers on a new line. You must have a total of nine lines of output and the integers must be printed in order (i.e., , , , , , , , , and , respectively).
Sample Output
1 2 3 4 5 6 7 8 9
As a few other people commented, the parser used to collect the answers on this question sucks.