class_docstr: Test the latex repr used by Jupyter
code: def test_symbol_basic(self):
      # default input
      p = poly.Polynomial([1, 2, 3], symbol="z")
      assert_equal(
          self.as_latex(p), r"$z \mapsto 1.0 + 2.0\,z + 3.0\,z^{2}$"
      )
  
      # translated input
      p = poly.Polynomial([1, 2, 3], domain=[-2, 0], symbol="z")
      assert_equal(
          self.as_latex(p),
          (
              r"$z \mapsto 1.0 + 2.0\,\left(1.0 + z\right) + 3.0\,"
              r"\left(1.0 + z\right)^{2}$"
          ),
      )
  
      # scaled input
      p = poly.Polynomial([1, 2, 3], domain=[-0.5, 0.5], symbol="z")
      assert_equal(
          self.as_latex(p),
          (
              r"$z \mapsto 1.0 + 2.0\,\left(2.0z\right) + 3.0\,"
              r"\left(2.0z\right)^{2}$"
          ),
      )
  
      # affine input
      p = poly.Polynomial([1, 2, 3], domain=[-1, 0], symbol="z")
      assert_equal(
          self.as_latex(p),
          (
              r"$z \mapsto 1.0 + 2.0\,\left(1.0 + 2.0z\right) + 3.0\,"
              r"\left(1.0 + 2.0z\right)^{2}$"
          ),
      )
  
imports: from math import nan, inf
  import pytest
  from numpy.core import array, arange, printoptions
  import numpy.polynomial
  from numpy.testing import assert_equal, assert_
  from fractions import Fraction
  from decimal import Decimal
label_desc: Use image node_id 5 for calling the TestLatexRepr obj's underlying member method code with example usage: obj.test_symbol_basic() without return types