
'''simple docstring'''


def lowercase_	(   _lowercase			,       _lowercase			,       _lowercase				)     ->							list:
					'''simple docstring'''

					lowerCamelCase_					:      List[Any]     =		len(_lowercase				)
					lowerCamelCase_					:      int     =		[[0] * n for i in range(_lowercase				)]
					for i in range(_lowercase				):
										lowerCamelCase_					:      Optional[int]     =		y_points[i]

					for i in range(2			,       _lowercase				):
										for j in range(_lowercase			,       _lowercase				):
															lowerCamelCase_					:      Optional[int]     =		(
															    (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()




'''simple docstring'''


from __future__ import annotations




def lowercase_	(   _lowercase			,       _lowercase			,       _lowercase				)     ->							dict[str, float]:
					'''simple docstring'''

					if (voltage, current, resistance).count(0				) != 1:
										raise ValueError('''One and only one argument must be 0'''				)
					if resistance < 0:
										raise ValueError('''Resistance cannot be negative'''				)
					if voltage == 0:
										return {"voltage": float(current * resistance				)}
					elif current == 0:
										return {"current": voltage / resistance}
					elif resistance == 0:
										return {"resistance": voltage / current}
					else:
										raise ValueError('''Exactly one argument must be 0'''				)


if __name__ == "__main__":
					import doctest

					doctest.testmod()


