






'''simple docstring'''



from __future__ import annotations

import math


def 							lowercase_				(    __A :       float					,      __A :       int			)       ->      float:



 """simple docstring"""




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


def 							lowercase_				(    )       ->      None:



 """simple docstring"""




 lowercase					:   List[str]				  =int(input('''enter the numbers of values: '''			)			)
 lowercase					:   list[list[float]]				  =[]
 for _ in range(__A			):
  y.append([]			)
 for i in range(__A			):
  for j in range(__A			):
   y[i].append(__A			)
   lowercase					:   List[Any]				  =0

 print('''enter the values of parameters in a list: '''			)
 lowercase					:   Optional[int]				  =list(map(__A					,      input().split()			)			)

 print('''enter the values of corresponding parameters: '''			)
 for i in range(__A			):
  lowercase					:   str				  =float(input()			)

 lowercase					:   int				  =int(input('''enter the value to interpolate: '''			)			)
 lowercase					:   Union[str, Any]				  =(value - x[0]) / (x[1] - x[0])

 # for calculating forward difference table

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

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

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


if __name__ == "__main__":
      main()











'''simple docstring'''



from __future__ import annotations

SCREAMING_SNAKE_CASE						=	8.988E9  # units = N * m^s * C^-2


def 							lowercase_				(    __A :       float					,      __A :       float					,      __A :       float					,      __A :       float			)       ->      dict[str, float]:



 """simple docstring"""




 lowercase					:   Dict				  =abs(chargea * chargea			)

 if (force, chargea, chargea, distance).count(0			) != 1:
  raise ValueError('''One and only one argument must be 0'''			)
 if distance < 0:
  raise ValueError('''Distance cannot be negative'''			)
 if force == 0:
  lowercase					:   Union[str, Any]				  =COULOMBS_CONSTANT * charge_product / (distance**2)
  return {"force": force}
 elif chargea == 0:
  lowercase					:   int				  =abs(__A			) * (distance**2) / (COULOMBS_CONSTANT * chargea)
  return {"charge1": chargea}
 elif chargea == 0:
  lowercase					:   int				  =abs(__A			) * (distance**2) / (COULOMBS_CONSTANT * chargea)
  return {"charge2": chargea}
 elif distance == 0:
  lowercase					:   Tuple				  =(COULOMBS_CONSTANT * charge_product / abs(__A			)) ** 0.5
  return {"distance": distance}
 raise ValueError('''Exactly one argument must be 0'''			)


if __name__ == "__main__":
      import doctest

      doctest.testmod()



