



from math import pow, sqrt

def      __lowercase(						*UpperCAmelCase__			):


      """simple docstring"""



      lowerCamelCase             =		len(_a			) > 0 and all(value > 0.0 for value in values			)
      return result

def      __lowercase(						UpperCAmelCase__ , UpperCAmelCase__			):


      """simple docstring"""



      return (
          round(sqrt(molar_mass_a / molar_mass_a			) , 6			)
          if validate(_a , _a			)
          else ValueError("Input Error: Molar mass values must greater than 0."			)
      )

def      __lowercase(						UpperCAmelCase__ , UpperCAmelCase__ , UpperCAmelCase__			):


      """simple docstring"""



      return (
          round(effusion_rate * sqrt(molar_mass_a / molar_mass_a			) , 6			)
          if validate(_a , _a , _a			)
          else ValueError(
              "Input Error: Molar mass and effusion rate values must greater than 0."			)
      )

def      __lowercase(						UpperCAmelCase__ , UpperCAmelCase__ , UpperCAmelCase__			):


      """simple docstring"""



      return (
          round(effusion_rate / sqrt(molar_mass_a / molar_mass_a			) , 6			)
          if validate(_a , _a , _a			)
          else ValueError(
              "Input Error: Molar mass and effusion rate values must greater than 0."			)
      )

def      __lowercase(						UpperCAmelCase__ , UpperCAmelCase__ , UpperCAmelCase__			):


      """simple docstring"""



      return (
          round(molar_mass / pow(effusion_rate_a / effusion_rate_a , 2			) , 6			)
          if validate(_a , _a , _a			)
          else ValueError(
              "Input Error: Molar mass and effusion rate values must greater than 0."			)
      )






def      __lowercase(						UpperCAmelCase__ , UpperCAmelCase__ , UpperCAmelCase__			):


      """simple docstring"""



      return (
          round(pow(effusion_rate_a / effusion_rate_a , 2			) / molar_mass , 6			)
          if validate(_a , _a , _a			)
          else ValueError(
              "Input Error: Molar mass and effusion rate values must greater than 0."			)
      )


"""simple docstring"""


from typing import TYPE_CHECKING

from ...utils import (
    OptionalDependencyNotAvailable,
    _LazyModule,
    is_torch_available,
)


UpperCAmelCase													={
    "configuration_mega": ["MEGA_PRETRAINED_CONFIG_ARCHIVE_MAP", "MegaConfig", "MegaOnnxConfig"],
}

try:
  if not is_torch_available():
    raise OptionalDependencyNotAvailable()
except OptionalDependencyNotAvailable:
  pass
else:
  UpperCAmelCase													=[
      "MEGA_PRETRAINED_MODEL_ARCHIVE_LIST",
      "MegaForCausalLM",
      "MegaForMaskedLM",
      "MegaForMultipleChoice",
      "MegaForQuestionAnswering",
      "MegaForSequenceClassification",
      "MegaForTokenClassification",
      "MegaModel",
      "MegaPreTrainedModel",
  ]

if TYPE_CHECKING:
  from .configuration_mega import MEGA_PRETRAINED_CONFIG_ARCHIVE_MAP, MegaConfig, MegaOnnxConfig

  try:
    if not is_torch_available():
      raise OptionalDependencyNotAvailable()
  except OptionalDependencyNotAvailable:
    pass
  else:
    from .modeling_mega import (
        MEGA_PRETRAINED_MODEL_ARCHIVE_LIST,
        MegaForCausalLM,
        MegaForMaskedLM,
        MegaForMultipleChoice,
        MegaForQuestionAnswering,
        MegaForSequenceClassification,
        MegaForTokenClassification,
        MegaModel,
        MegaPreTrainedModel,
    )

else:
  import sys

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




