]> gitweb.michael.orlitzky.com - sage.d.git/blob - mjo/misc.py
eja: rename operator_inner_product -> operator_trace inner_product.
[sage.d.git] / mjo / misc.py
1 """
2 Stuff that doesn't fit anywhere else.
3 """
4
5 from sage.all import *
6
7
8 def legend_latex(obj):
9 """
10 Return the LaTeX representation of ``obj``, but wrap it in dollar
11 ($) signs so that we can pass it directly to plot() et al. as a
12 legend label.
13 """
14 return '$%s$' % latex(obj)