From 84e59a54e6f3310b665232dad1fbe00089a8f063 Mon Sep 17 00:00:00 2001 From: ichuang Date: Sat, 23 Jun 2012 17:05:09 -0400 Subject: [PATCH] improved symmath error handling for matrix shape mismatch --- lms/lib/symmath/symmath_check.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/lms/lib/symmath/symmath_check.py b/lms/lib/symmath/symmath_check.py index 325108f3e9..5ea428b1d5 100644 --- a/lms/lib/symmath/symmath_check.py +++ b/lms/lib/symmath/symmath_check.py @@ -231,6 +231,9 @@ def symmath_check(expect,ans,dynamath=None,options=None,debug=None): dm = my_evalf(sympy.Matrix(fexpect)-sympy.Matrix(xgiven),chop=True) if abs(dm.vec().norm().evalf())