Vote Week 2 - Graded Assignment. Exercise 4 - Issue


I am having trouble doing the fourth exercise. I don’t know why it gives me a wrong matrix. Could you please help me with this?
I have followed all the comments in the cell, but it won’t work out.


1 Like

Hello @Vahid_Shadram!

One thing that you may try is to add a print function after each computation and check if it is in fact performing the operation that it is being asked. Therefore you can find exactly where the divergence starts to happen.

Tell me if this works. If you still face issues, let us know.


Hello Lucas!

Thank you so much for your message. It has worked out, and I have finished the assignment. Thank you


1 Like

Hi, for exercise 4 I used A_system = np.hstack((A, b.reshape((4, 1)))), which gave:
[[ 2. -1. 1. 1. 6.]
[ 1. 2. -1. -1. 3.]
[-1. 2. 2. 2. 14.]
[ 1. -1. 2. 1. 8.]]

Using grade up to here this is wrong. Why?