all of the variables n, st, st2, st3, st4, st5, st6, sx, sxt, sxt2, and
sxt3 are all floats.
A = array([[N, st, st2, st3],[st, st2, st3, st4], [st2, st3, st4, st5],
[st3, st4, st5, st6]])
B = array ([sx, sxt, sxt2, sxt3])
lina = linalg.solve(A, B)
is there something wrong with this code?
it is returning
File "C:\PYTHON23\Lib\site-packages\numpy\linalg\linalg.py", line 138,
in solve
raise LinAlgError, 'Singular matrix'
numpy.linalg.linalg.LinAlgError: Singular matrix
Does anyone know what I am doing wrong?
-Kenny
-------------------------------------------------------------------------
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
_______________________________________________
Numpy-discussion mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/numpy-discussion