
"""simple docstring"""





def 							A_     (__a				):

					'''simple docstring'''





					if not isinstance(__a				,   __a				):
										raise ValueError("Input series is not valid, valid series - [2, 4, 6]"				)
					if len(__a				) == 0:
										raise ValueError("Input list must be a non empty list"				)
					if len(__a				) == 1:
										return True
					A_				 =						series[1] - series[0]
					for index in range(len(__a				) - 1				):
										if series[index + 1] - series[index] != common_diff:
															return False
					return True
def 							A_     (__a				):

					'''simple docstring'''





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


if __name__ == "__main__":
		import doctest

		doctest.testmod()






"""simple docstring"""





def 							A_     (__a				,   __a				,   __a				):

					'''simple docstring'''





					A_				 =						len(__a				)
					A_				 =						[[0] * n for i in range(__a				)]
					for i in range(__a				):
										A_				 =						y_points[i]

					for i in range(2				,   __a				):
										for j in range(__a				,   __a				):
															A_				 =						(
															    (xa - x_points[j - i + 1]) * q[j][i - 1]
															    - (xa - x_points[j]) * q[j - 1][i - 1]
															) / (x_points[j] - x_points[j - i + 1])

					return [q[n - 1][n - 1], q]


if __name__ == "__main__":
		import doctest

		doctest.testmod()




