

"""simple docstring"""


from collections.abc import Sequence



def   _A					(	_a	:						Sequence[float]     ,   _a	:						float				):



      """simple docstring"""






      return sum(c * (x**i) for i, c in enumerate(_a				)				)



def   _A					(	_a	:						Sequence[float]     ,   _a	:						float				):



      """simple docstring"""






      A				  =		0.0
      for coeff in reversed(_a				):
            A				  =		result * x + coeff
      return result


if __name__ == "__main__":
  UpperCAmelCase													=(0.0, 0.0, 5.0, 9.3, 7.0)
  UpperCAmelCase													=10.0
  print(evaluate_poly(poly, x))
  print(horner(poly, x))







"""simple docstring"""


from typing import TYPE_CHECKING

# rely on isort to merge the imports
from ...utils import OptionalDependencyNotAvailable, _LazyModule, is_torch_available


UpperCAmelCase													={
    "configuration_informer": [
        "INFORMER_PRETRAINED_CONFIG_ARCHIVE_MAP",
        "InformerConfig",
    ],
}

try:
  if not is_torch_available():
    raise OptionalDependencyNotAvailable()
except OptionalDependencyNotAvailable:
  pass
else:
  UpperCAmelCase													=[
      "INFORMER_PRETRAINED_MODEL_ARCHIVE_LIST",
      "InformerForPrediction",
      "InformerModel",
      "InformerPreTrainedModel",
  ]


if TYPE_CHECKING:
  from .configuration_informer import INFORMER_PRETRAINED_CONFIG_ARCHIVE_MAP, InformerConfig

  try:
    if not is_torch_available():
      raise OptionalDependencyNotAvailable()
  except OptionalDependencyNotAvailable:
    pass
  else:
    from .modeling_informer import (
        INFORMER_PRETRAINED_MODEL_ARCHIVE_LIST,
        InformerForPrediction,
        InformerModel,
        InformerPreTrainedModel,
    )

else:
  import sys

  UpperCAmelCase													=_LazyModule(__name__, globals()["__file__"], _import_structure, module_spec=__spec__)




