python - Numpy.linalg.det() returns incorrect result -


would know why numpy returning "-2.0000000000000004" instead of "-2"

>>> m = [[1,2],[3,4]] >>> numpy.linalg.det(m) -2.0000000000000004 

i using python 3.4.2 (x64), numpy 1.9.1 , windows 7 x64.


Comments

Popular posts from this blog

javascript - How to synchronize the Three.js and HTML/SVG coordinate systems (especially w.r.t. the y-axis)? -

javascript - How do I find how many occurences are there of a highlighted string, and which occurence is it? -

java - Reading data from multiple zip files and combining them to one -