
from __future__ import annotations

import math





def 			lowerCamelCase_ (				lowerCamelCase__	, lowerCamelCase__    ):
				lowerCamelCase_						=			u
				for i in range(1	, lowerCamelCase__    ):
								lowerCamelCase_						=			temp * (u - i)
				return temp





def 			lowerCamelCase_ (				):
				lowerCamelCase_						=			int(input("enter the numbers of values: "    )    )
				lowerCamelCase_						=			[]
				for _ in range(lowerCamelCase__    ):
								y.append([]    )
				for i in range(lowerCamelCase__    ):
								for j in range(lowerCamelCase__    ):
												y[i].append(lowerCamelCase__    )
												lowerCamelCase_						=			0

				print("enter the values of parameters in a list: "    )
				lowerCamelCase_						=			list(map(lowerCamelCase__	, input().split()    )    )

				print("enter the values of corresponding parameters: "    )
				for i in range(lowerCamelCase__    ):
								lowerCamelCase_						=			float(input()    )

				lowerCamelCase_						=			int(input("enter the value to interpolate: "    )    )
				lowerCamelCase_						=			(value - x[0]) / (x[1] - x[0])

				# for calculating forward difference table

				for i in range(1	, lowerCamelCase__    ):
								for j in range(n - i    ):
												lowerCamelCase_						=			y[j + 1][i - 1] - y[j][i - 1]

				lowerCamelCase_						=			y[0][0]
				for i in range(1	, lowerCamelCase__    ):
								summ += (ucal(lowerCamelCase__	, lowerCamelCase__    ) * y[0][i]) / math.factorial(lowerCamelCase__    )

				print(F'the value at {value} is {summ}'    )


if __name__ == "__main__":
			main()




import math





def 			lowerCamelCase_ (				lowerCamelCase__	, lowerCamelCase__    ):
				if 0 not in (x, y):
								# We use the relation x^y = y*log10(x), where 10 is the base.
								return y * math.logaa(lowerCamelCase__    )
				else:
								if x == 0:  # 0 raised to any number is 0
												return 0
								elif y == 0:
												return 1  # any number raised to 0 is 1
				raise AssertionError("This should never happen"    )


if __name__ == "__main__":  # Main function
			# Read two numbers from input and typecast them to int using map function.
			# Here x is the base and y is the power.
			__A				='''Enter the base and the power separated by a comma: '''
			__A,						__A				=map(int, input(prompt).split(''','''))
			__A,						__A				=map(int, input(prompt).split(''','''))

			# We find the log of each number, using the function res(), which takes two
			# arguments.
			__A				=res(xa, ya)
			__A				=res(xa, ya)

			# We check for the largest number
			if resa > resa:
						print('''Largest number is''', xa, '''^''', ya)
			elif resa > resa:
						print('''Largest number is''', xa, '''^''', ya)
			else:
						print('''Both are equal''')


