class_docstr: Test the latex repr used by Jupyter
code: def test_simple_polynomial(self):
      # default input
      p = poly.Polynomial([1, 2, 3])
      assert_equal(
          self.as_latex(p), r"$x \mapsto 1.0 + 2.0\,x + 3.0\,x^{2}$"
      )
  
      # translated input
      p = poly.Polynomial([1, 2, 3], domain=[-2, 0])
      assert_equal(
          self.as_latex(p),
          r"$x \mapsto 1.0 + 2.0\,\left(1.0 + x\right) + 3.0\,\left(1.0 + x\right)^{2}$",
      )
  
      # scaled input
      p = poly.Polynomial([1, 2, 3], domain=[-0.5, 0.5])
      assert_equal(
          self.as_latex(p),
          r"$x \mapsto 1.0 + 2.0\,\left(2.0x\right) + 3.0\,\left(2.0x\right)^{2}$",
      )
  
      # affine input
      p = poly.Polynomial([1, 2, 3], domain=[-1, 0])
      assert_equal(
          self.as_latex(p),
          r"$x \mapsto 1.0 + 2.0\,\left(1.0 + 2.0x\right) + 3.0\,\left(1.0 + 2.0x\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 2 for calling the TestLatexRepr obj's underlying member method code with example usage: obj.test_simple_polynomial() without return types