2
我正在使用IPython的Qtconsole并使用打印设置的默认设置。 它非常适用多项式,但没有为矩阵Sympy未能呈现矩阵
工作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版本。因为只有开发版本的来源。
您正在使用哪个Python版本? –
我正在使用python 3.4。我尝试安装一个乳胶,然后sympy将使用乳胶来渲染等式。它有效,但我不认为这是解决方案。 – iuradz