
'''simple docstring'''







def        SCREAMING_SNAKE_CASE__			(     __A = 4_000_000			) ->			int:
	_snake_case     		=	[0, 1]
	_snake_case     		=	0
	while fib[i] <= n:
		fib.append(fib[i] + fib[i + 1]			)
		if fib[i + 2] > n:
			break
		i += 1
	_snake_case     		=	0
	for j in range(len(__A			) - 1			):
		if fib[j] % 2 == 0:
			total += fib[j]

	return total


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



'''simple docstring'''







from typing import Any

import numpy as np







def        SCREAMING_SNAKE_CASE__			(     __A			) ->			bool:
	return np.array_equal(__A    ,       matrix.conjugate().T			)







def        SCREAMING_SNAKE_CASE__			(     __A    ,       __A			) ->			Any:
	_snake_case     		=	v.conjugate().T
	_snake_case     		=	v_star.dot(__A			)
	assert isinstance(__A    ,       np.ndarray			)
	return (v_star_dot.dot(__A			)) / (v_star.dot(__A			))







def        SCREAMING_SNAKE_CASE__			(     ) ->			None:
	_snake_case     		=	np.array([[2, 2 + 1j, 4], [2 - 1j, 3, 1j], [4, -1j, 1]]			)
	_snake_case     		=	np.array([[1], [2], [3]]			)
	assert is_hermitian(__A			), F'{a} is not hermitian.'
	print(rayleigh_quotient(__A    ,       __A			)			)

	_snake_case     		=	np.array([[1, 2, 4], [2, 3, -1], [4, -1, 1]]			)
	assert is_hermitian(__A			), F'{a} is not hermitian.'
	assert rayleigh_quotient(__A    ,       __A			) == float(3			)


if __name__ == "__main__":
					import doctest

					doctest.testmod()
					tests()

