

"""simple docstring"""





from typing import TYPE_CHECKING

from ...utils import OptionalDependencyNotAvailable, _LazyModule, is_torch_available


_a       =							{
    'configuration_luke': ['LUKE_PRETRAINED_CONFIG_ARCHIVE_MAP', 'LukeConfig'],
    'tokenization_luke': ['LukeTokenizer'],
}

try:
   if not is_torch_available():
      raise OptionalDependencyNotAvailable()
except OptionalDependencyNotAvailable:
   pass
else:
   _a       =							[
       'LUKE_PRETRAINED_MODEL_ARCHIVE_LIST',
       'LukeForEntityClassification',
       'LukeForEntityPairClassification',
       'LukeForEntitySpanClassification',
       'LukeForMultipleChoice',
       'LukeForQuestionAnswering',
       'LukeForSequenceClassification',
       'LukeForTokenClassification',
       'LukeForMaskedLM',
       'LukeModel',
       'LukePreTrainedModel',
   ]


if TYPE_CHECKING:
   from .configuration_luke import LUKE_PRETRAINED_CONFIG_ARCHIVE_MAP, LukeConfig
   from .tokenization_luke import LukeTokenizer

   try:
      if not is_torch_available():
         raise OptionalDependencyNotAvailable()
   except OptionalDependencyNotAvailable:
      pass
   else:
      from .modeling_luke import (
          LUKE_PRETRAINED_MODEL_ARCHIVE_LIST,
          LukeForEntityClassification,
          LukeForEntityPairClassification,
          LukeForEntitySpanClassification,
          LukeForMaskedLM,
          LukeForMultipleChoice,
          LukeForQuestionAnswering,
          LukeForSequenceClassification,
          LukeForTokenClassification,
          LukeModel,
          LukePreTrainedModel,
      )

else:
   import sys

   _a       =							_LazyModule(__name__, globals()['__file__'], _import_structure, module_spec=__spec__)







"""simple docstring"""





from collections.abc import Sequence




def   _A  (  UpperCamelCase_     :       Sequence[float],			UpperCamelCase_     :       float)	->						float:
   '''simple docstring'''


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




def   _A  (  UpperCamelCase_     :       Sequence[float],			UpperCamelCase_     :       float)	->						float:
   '''simple docstring'''


   __lowercase								=						0.0
   for coeff in reversed(UpperCamelCase_):
      __lowercase								=						result * x + coeff
   return result


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




