Status: New
Owner: ----
Labels: Type-Defect Priority-Medium
New issue 3595 by [email protected]: ZerodivisionError with floating
point Matrix inversion
http://code.google.com/p/sympy/issues/detail?id=3595
This appears to be new since 0.7.2
{{
m = sympy.Matrix([[0.0, 1.0, 0.0], [1.0, 0.0, 0.0], [0.0, 0.0, 1.0]])
m.inv()
}}}
gives
{{{
....
/home/mb312/dev_trees/sympy/sympy/core/numbers.py in __div__(self, other)
756 if isinstance(other, Number):
757 rhs, prec = other._as_mpf_op(self._prec)
--> 758 return Float._new(mlib.mpf_div(self._mpf_, rhs, prec,
rnd), prec)
759 return Number.__div__(self, other)
760
/home/mb312/dev_trees/sympy/sympy/mpmath/libmp/libmpf.py in mpf_div(s, t,
prec, rnd)
928 if not sman or not tman:
929 if s == fzero:
--> 930 if t == fzero: raise ZeroDivisionError
931 if t == fnan: return fnan
932 return fzero
}}}
ZeroDivisionError:
--
You received this message because you are subscribed to the Google Groups
"sympy-issues" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to
[email protected].
For more options, visit this group at
http://groups.google.com/group/sympy-issues?hl=en.