MCPcopy Create free account
hub / github.com/numpy/numpy / _repr_latex_scalar

Method _repr_latex_scalar

numpy/polynomial/_polybase.py:431–434  ·  view source on GitHub ↗
(x, parens=False)

Source from the content-addressed store, hash-verified

429
430 @staticmethod
431 def _repr_latex_scalar(x, parens=False):
432 # TODO: we're stuck with disabling math formatting until we handle
433 # exponents in this function
434 return fr'\text{{{pu.format_float(x, parens=parens)}}}'
435
436 def _format_term(self, scalar_format: Callable, off: float, scale: float):
437 """ Format a single term in the expansion """

Callers 1

_repr_latex_Method · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected