


def 	__lowercase		(  _UpperCamelCase   )			->bool:







      """simple docstring"""

      if not isinstance(snake_case_,			snake_case_   ):
            raise ValueError('''Input series is not valid, valid series - [2, 4, 6]'''   )
      if len(snake_case_   ) == 0:
            raise ValueError('''Input list must be a non empty list'''   )
      if len(snake_case_   ) == 1:
            return True
      lowercase	:      Union[str, Any]          =						series[1] - series[0]
      for index in range(len(snake_case_   ) - 1   ):
            if series[index + 1] - series[index] != common_diff:
                  return False
      return True




def 	__lowercase		(  _UpperCamelCase   )			->float:







      """simple docstring"""

      if not isinstance(snake_case_,			snake_case_   ):
            raise ValueError('''Input series is not valid, valid series - [2, 4, 6]'''   )
      if len(snake_case_   ) == 0:
            raise ValueError('''Input list must be a non empty list'''   )
      lowercase	:      List[str]          =						0
      for val in series:
            answer += val
      return answer / len(snake_case_   )


if __name__ == "__main__":
  import doctest

  doctest.testmod()


'''simple docstring'''





from math import log

from scipy.constants import Boltzmann, physical_constants

SCREAMING_SNAKE_CASE_:     Optional[int]  =3_00  # TEMPERATURE (unit = K)





def 	lowerCAmelCase_				(					snake_case_       : float					,    snake_case_       : float					,    snake_case_       : float					,    )    ->      float:


     '''simple docstring'''




     if donor_conc <= 0:
          raise ValueError("Donor concentration should be positive"			)
     elif acceptor_conc <= 0:
          raise ValueError("Acceptor concentration should be positive"			)
     elif intrinsic_conc <= 0:
          raise ValueError("Intrinsic concentration should be positive"			)
     elif donor_conc <= intrinsic_conc:
          raise ValueError(
              "Donor concentration should be greater than intrinsic concentration"			)
     elif acceptor_conc <= intrinsic_conc:
          raise ValueError(
              "Acceptor concentration should be greater than intrinsic concentration"			)
     else:
          return (
              Boltzmann
              * T
              * log((donor_conc * acceptor_conc) / intrinsic_conc**2			)
              / physical_constants["electron volt"][0]
          )


if __name__ == "__main__":
    import doctest

    doctest.testmod()




