
"""simple docstring"""





def 							A_     (__a				,   __a = False				):

					'''simple docstring'''





					if not isinstance(lowerCamelCase_				,   lowerCamelCase_				):
										A_				 =						f'Expected string as input, found {type(lowerCamelCase_				)}'
										raise ValueError(lowerCamelCase_				)
					if not isinstance(lowerCamelCase_				,   lowerCamelCase_				):
										A_				 =						f'Expected boolean as use_pascal parameter, found {type(lowerCamelCase_				)}'
										raise ValueError(lowerCamelCase_				)

					A_				 =						input_str.split("_"				)

					A_				 =						0 if use_pascal else 1

					A_				 =						words[start_index:]

					A_				 =						[word[0].upper() + word[1:] for word in words_to_capitalize]

					A_				 =						"" if use_pascal else words[0]

					return "".join([initial_word, *capitalized_words]				)


if __name__ == "__main__":
		from doctest import testmod

		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()




