CoCalc Public Filessupport / sympy printing test.htmlOpen with one click!
Authors: Gihan Marasingha, Harald Schilly, ℏal Snyder, William A. Stein
Description: Jupyter html version of support/sympy printing test.ipynb
Compute Environment: Ubuntu 18.04 (Deprecated)
sympy printing test
In [1]:
import os
from sympy import *
In [2]:
os.environ['SYMPY_DEBUG'] = 'True'
In [3]:
init_printing()
In [4]:
Matrix([1, 2])
Out[4]:
[12]\left[\begin{matrix}1\\2\end{matrix}\right]
In [5]:
a, b, c = symbols('a, b, c')
In [6]:
a** + b**2 - c**2
Out[6]:
ab2c2a^{b^{2}} - c^{2}
In [7]:
init_printing(use_latex='mathjax')
In [8]:
a** + b**2 - c**2
Out[8]:
ab2c2a^{b^{2}} - c^{2}
In [ ]: