code: def chebyt(n, monic=False):
      r"""Chebyshev polynomial of the first kind.
  
      Defined to be the solution of
  
      .. math::
          (1 - x^2)\frac{d^2}{dx^2}T_n - x\frac{d}{dx}T_n + n^2T_n = 0;
  
      :math:`T_n` is a polynomial of degree :math:`n`.
  
      Parameters
      ----------
      n : int
          Degree of the polynomial.
      monic : bool, optional
          If `True`, scale the leading coefficient to be 1. Default is
          `False`.
  
      Returns
      -------
      T : orthopoly1d
          Chebyshev polynomial of the first kind.
  
      Notes
      -----
      The polynomials :math:`T_n` are orthogonal over :math:`[-1, 1]`
      with weight function :math:`(1 - x^2)^{-1/2}`.
  
      See Also
      --------
      chebyu : Chebyshev polynomial of the second kind.
  
      """
      if n < 0:
          raise ValueError("n must be nonnegative.")
  
      wfunc = lambda x: 1.0 / sqrt(1 - x * x)
      if n == 0:
          return orthopoly1d(
              [],
              [],
              pi,
              1.0,
              wfunc,
              (-1, 1),
              monic,
              lambda x: eval_chebyt(n, x),
          )
      n1 = n
      x, w, mu = roots_chebyt(n1, mu=True)
      hn = pi / 2
      kn = 2 ** (n - 1)
      p = orthopoly1d(
          x,
          w,
          hn,
          kn,
          wfunc,
          (-1, 1),
          monic,
          lambda x: eval_chebyt(n, x),
      )
      return p
  
imports: from __future__ import division, print_function, absolute_import
  import numpy
  from numpy import exp, inf, pi, sqrt, floor, sin, cos, around, int, hstack, arccos, arange
  from scipy import linalg
  from scipy.special import airy
  from .None import _ufuncs
  from .None import _ufuncs
  from .None import specfun
  from ._ufuncs import binom, eval_jacobi, eval_sh_jacobi, eval_gegenbauer, eval_chebyt, eval_chebyu, eval_chebys, eval_chebyc, eval_sh_chebyt, eval_sh_chebyu, eval_legendre, eval_sh_legendre, eval_genlaguerre, eval_laguerre, eval_hermite, eval_hermitenorm
label_desc: Use image node_id 24 for calling a global function with example usage: chebyt(n, monic) and returns: p, orthopoly1d