Hello everyone.. I'm a new user of python.. I have encountered a problem while trying to find the inverse of a matrix even after importing numpy and scipy. The error is:
>>> a=[[[1, 2, 3],
[2, 3, 4],
[3, 4, 5]], float]
>>> print a
[[[1, 2, 3], [2, 3, 4], [3, 4, 5]], <type 'float'>]
>>> ai=inverse(a)
Traceback (most recent call last):
File "<pyshell#7>", line 1, in <module>
ai=inverse(a)
NameError: name 'inverse' is not defined
>>> ai=numpy.inverse(a)
Traceback (most recent call last):
File "<pyshell#8>", line 1, in <module>
ai=numpy.inverse(a)
AttributeError: 'module' object has no attribute 'inverse'
Please help..