This is James's daughter again, sneaking into his Cody account. Thanks to your help in my math class last year, I did great! But now they're giving me even harder problems. This time, they're giving me a 2x2 matrix of numbers, and asking me to make it a 3x3 matrix so the center numbers on each side multiply to the numbers in the corner. It's kinda hard to explain, so I'll just give you the example our teacher gave us in class.
The matrix we were given is:
21 6 35 10
The correct answer is:
21 3 6 7 0 2 35 5 10
The zero in the middle doesn't really matter, so I don't care what number you put in there. Some of the problems might have more than one answer, but as long as the numbers multiply out correctly, it's a good answer. All of the numbers have to be integers, though. Thanks again for your help!
I think the test suite is broken, I appear to only get x = [21,6;35,10] as the input and y is being displayed as a vector instead of the matrix that is returned. So either the return is being compared to an x that was not sent or y being a vector is causing the test cases to always fail.
Andrew, I just tried resubmitting my original solution, and the test suite was OK. What is the exact problem that you're having with the test suite when you submit your solution?
nice one!!
Find relatively common elements in matrix rows
640 Solvers
520 Solvers
What is the distance from point P(x,y) to the line Ax + By + C = 0?
207 Solvers
171 Solvers
266 Solvers