CoCalc Shared Filessympy printing test.htmlOpen in CoCalc with one click!
Author: Jason Moore
Views : 8
Description: Jupyter html version of sympy printing test.ipynb
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]:
Matrix([
[1],
[2]])
In [5]:
a, b, c = symbols('a, b, c')
In [6]:
a** + b**2 - c**2
Out[6]:
a**(b**2) - c**2
In [7]:
init_printing(use_latex='mathjax')
In [8]:
a** + b**2 - c**2
Out[8]:
a**(b**2) - c**2