Sharedsupport / sympy printing test.ipynbOpen in CoCalc
Author: William A. Stein
License: GNU General Public License v3.0
Description: Examples for support purposes.
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 [ ]: