"""simple docstring"""






from __future__ import annotations

import math


def     UpperCAmelCase__ (       lowerCAmelCase__  :float      ,	lowerCAmelCase__  :int	)				->					float:
      '''simple docstring'''


      lowercase														=			u
      for i in range(1      ,	lowerCAmelCase__	):
            lowercase														=			temp * (u - i)
      return temp


def     UpperCAmelCase__ (       )				->					None:
      '''simple docstring'''


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

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

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

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

      # for calculating forward difference table

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

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




"""simple docstring"""






# this script reports modified .py files under the desired list of top-level sub-dirs passed as a list of arguments, e.g.:
#   python ./utils/get_modified_files.py utils src tests examples
#
# it uses git to find the forking point and which files were modified - i.e. files not under git won't be considered
# since the output of this script is fed into Makefile commands it doesn't print a newline after the results

import re
import subprocess
import sys


__lowerCAmelCase					: Union[str, Any]        =subprocess.check_output("""git merge-base main HEAD""".split()).decode("""utf-8""")
__lowerCAmelCase					: List[str]        =subprocess.check_output(F"""git diff --name-only {fork_point_sha}""".split()).decode("""utf-8""").split()

__lowerCAmelCase					: List[str]        ="""|""".join(sys.argv[1:])
__lowerCAmelCase					: Dict        =re.compile(RF"""^({joined_dirs}).*?\.py$""")

__lowerCAmelCase					: int        =[x for x in modified_files if regex.match(x)]
print(""" """.join(relevant_modified_files), end="""""")



