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