



"""simple docstring"""






def   __lowercase     (	__lowerCamelCase       :					Any							,	__lowerCamelCase       :					Union[str, Any]							,	__lowerCamelCase       :					Dict							,	__lowerCamelCase       :					Tuple							,	__lowerCamelCase       :					int							,	):
			"""simple docstring"""
			lowerCamelCase__	:	List[Any]				=[redshift, radiation_density, matter_density, dark_energy]
			if any(p < 0 for p in parameters			):
						raise ValueError('''All input parameters must be positive'''			)

			if any(p > 1 for p in parameters[1:4]			):
						raise ValueError('''Relative densities cannot be greater than one'''			)
			else:
						lowerCamelCase__	:	Tuple				=1 - (matter_density + radiation_density + dark_energy)

						lowerCamelCase__	:	Union[str, Any]				=(
						    radiation_density * (redshift + 1) ** 4
						    + matter_density * (redshift + 1) ** 3
						    + curvature * (redshift + 1) ** 2
						    + dark_energy
						)

						lowerCamelCase__	:	Optional[Any]				=hubble_constant * e_a ** (1 / 2)
						return hubble


if __name__ == "__main__":
		import doctest

		# run doctest
		doctest.testmod()

		# demo LCDM approximation
		_lowercase				:				int   		=		0.3

		print(
		    hubble_parameter(
		        hubble_constant=6_8.3,
		        radiation_density=1E-4,
		        matter_density=matter_density,
		        dark_energy=1 - matter_density,
		        redshift=0,
		    )
		)









"""simple docstring"""






def   snake_case__     (	__lowerCamelCase       :					int = 4000000			):
			"""simple docstring"""
			lowerCamelCase__	:	Dict				=[]
			lowerCamelCase__			,     lowerCamelCase__	:	Union[str, Any]				=0, 1
			while b <= n:
						if b % 2 == 0:
									even_fibs.append(__lowerCamelCase			)
						lowerCamelCase__			,     lowerCamelCase__	:	Union[str, Any]				=b, a + b
			return sum(__lowerCamelCase			)


if __name__ == "__main__":
		print(f'{solution() = }')




