Numpy linear solver in Python -


I was using numpy.linalg.solve to solve a set of linear equations, coefficients matrix a < / P>

  a = [[1.00000000e + 00 0.00000000e + 00 0.00000000e + 00 ..., 0.00000000e + 00 0.00000000e + 00 0.00000000e + 00] [0.00000000e + 00 1.00000000e + 00 0.00000000e + 00 ..., 0.00000000e + 00 0.00000000e + 00] [0.00000000e + 00 0.00000000e + 00 1.00000000e + 00 ..., 0.00000000e + 00 0.00000000e + 00 0.00000000e + 00] .. ., [0.00000000e + 00 0.00000000e + 00 0.00000000e + 00 ..., 1.1920680 9A + 12 -1.22559480 A + 12 3.460 9 2750e + 11] [0.00000000e + 00 0.00000000e + 00 0.00000000e + 00 .. ., -1.80896480e + 14 2.54068164e + 12 -8.65658340e + 12] [0.00000000e + 00 0.00000000e + 00 0.00000000e + 00 ..., 6.92185500e + 11 4.23578160e + 12 -6.79632634e + 12]] < / Code> 

and B matrix

  [0.0, 0.0, 0.0, 0.0 .................... ...... 150000]  

and I think it should be the output of matrix such as 0.0, 0.0]

However, the actual result is non-zero value, someone help me Can the reason?

Thank you in advance.


Comments

Popular posts from this blog

java - Can't add JTree to JPanel of a JInternalFrame -

javascript - data.match(var) not working it seems -

javascript - How can I pause a jQuery .each() loop, while waiting for user input? -