Sympy utilities
sympyUtilities.py module
API reference
- pyphyschemtools.sympyUtilities.PrintLatexStyleSymPyEquation(spe)[source]
Function that displays a SymPy expression (spe) in a jupyter notebbok after its conversion into a LaTeX / Math output
Input: spe= SymPy expression
Output: Pretty printing of spe
- pyphyschemtools.sympyUtilities.e2Lists(eigenvectors, sort=False)[source]
returns two separate lists from the list of tuples returned by the eigenvects() function of SymPy
input:
the list of tuples returned by eigenvects
sort (default: False): returns sorted eigenvalues and corresponding eigenvectors if True
output - list of eigenvalues, sorted or not - list of corresponding eigenvectors