Sympy未能呈现矩阵

时间:2015-05-03 14:41:01

标签: matplotlib sympy

我正在使用IPython的Qtconsole并使用打印设置的默认设置。 它适用于多项式,但不适用于Matrix

from sympy import init_printing, Matrix
init_printing()
a=Matrix([1,2])
a

错误是

ValueError: 
\left[\begin{smallmatrix}1\\2\end{smallmatrix}\right]
      ^
Expected "\right" (at char 6), (line:1, col:7)

我试过http://www.codecogs.com/latex/eqneditor.php,看来乳胶代码是正确的。 我已经尝试了开发版的sympy,它仍然无法正常工作。我还没试过matplotlib的dev版本。因为只有dev版本的来源。

0 个答案:

没有答案