| Download
All published worksheets from http://sagenb.org
Project: sagenb.org published worksheets
Views: 168756Image: ubuntu2004
array([ 2., 2.])
array([ 4., -2.])
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
File "/home/sage/sagenb/sage_notebook/worksheets/neumara/2/code/14.py", line 16, in <module>
exec compile(ur'x = solve(a, b)' + '\n', '', 'single')
File "", line 1, in <module>
File "/home/sage/sage_install/sage/local/lib/python2.6/site-packages/numpy/linalg/linalg.py", line 254, in solve
raise LinAlgError, 'Singular matrix'
numpy.linalg.linalg.LinAlgError: Singular matrix
array([-0.47247706, 0.25229358, 0.59633028])
array([ 2., -4., 5.])
array([-0.47247706, 0.25229358, 0.59633028])
array([[ 1.00000000e+00, 0.00000000e+00, 0.00000000e+00],
[ 0.00000000e+00, 1.00000000e+00, 0.00000000e+00],
[ -5.55111512e-17, -4.51028104e-17, 1.00000000e+00]])