Beispiel #1
0
 def _latex(self, printer: LatexPrinter, *args: Any) -> str:
     s, *_ = self.args
     s = printer._print(s)
     subscript = _indices_to_subscript(_determine_indices(s))
     name = (R"\rho^\mathrm{c}" +
             subscript if self._name is None else self._name)
     return Rf"{name}\left({s}\right)"
Beispiel #2
0
 def _latex(self, printer: LatexPrinter, *args: Any) -> str:
     s, _, width, *_ = self.args
     s = printer._print(s)
     subscript = _indices_to_subscript(_determine_indices(width))
     name = Rf"\Gamma{subscript}" if self._name is None else self._name
     return Rf"{name}\left({s}\right)"
Beispiel #3
0
 def _latex(self, printer: LatexPrinter, *args: Any) -> str:
     angle, *_ = self.args
     angle = printer._print(angle)
     return Rf"\boldsymbol{{R_z}}\left({angle}\right)"
Beispiel #4
0
 def _latex(self, printer: LatexPrinter, *args: Any) -> str:
     array = printer._print(self.array)
     if self.axis is None:
         return Rf"\sum{{{array}}}"
     axis = printer._print(self.axis)
     return Rf"\sum_{{\mathrm{{axis{axis}}}}}{{{array}}}"
Beispiel #5
0
 def _latex(self, printer: LatexPrinter, *args: Any) -> str:
     return printer._print(self.evaluate(), *args)
Beispiel #6
0
 def _latex(self, printer: LatexPrinter, *args: Any) -> str:
     beta = printer._print(self.args[0])
     return Rf"\boldsymbol{{B_z}}\left({beta}\right)"
Beispiel #7
0
 def _latex(self, printer: LatexPrinter, *args: Any) -> str:
     momentum = printer._print(self._momentum)
     return Rf"\theta\left({momentum}\right)"
Beispiel #8
0
 def _latex(self, printer: LatexPrinter, *args: Any) -> str:
     momentum = printer._print(self._momentum)
     return f"m_{{{momentum}}}"
Beispiel #9
0
 def _latex(self, printer: LatexPrinter, *args: Any) -> str:
     momentum = printer._print(self._momentum)
     return Rf"\left|\vec{{{momentum}}}\right|"