
from __future__ import annotations

from math import pow, sqrt




def 							a		(				snake_case__:   float		,  snake_case__:   float		,  snake_case__:   float   ):


				'''simple docstring'''
				if (resistance, reactance, impedance).count(0   ) != 1:
								raise ValueError('''One and only one argument must be 0'''   )
				if resistance == 0:
								return {"resistance": sqrt(pow(snake_case__		,  2   ) - pow(snake_case__		,  2   )   )}
				elif reactance == 0:
								return {"reactance": sqrt(pow(snake_case__		,  2   ) - pow(snake_case__		,  2   )   )}
				elif impedance == 0:
								return {"impedance": sqrt(pow(snake_case__		,  2   ) + pow(snake_case__		,  2   )   )}
				else:
								raise ValueError('''Exactly one argument must be 0'''   )


if __name__ == "__main__":
						import doctest

						doctest.testmod()






from __future__ import annotations

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




def 							a		(				snake_case__:   float		,  snake_case__:   float		,  snake_case__:   float		,  snake_case__:   float   ):


				'''simple docstring'''
				lowercase_	    =   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_	    =   COULOMBS_CONSTANT * charge_product / (distance**2)
								return {"force": force}
				elif chargea == 0:
								lowercase_	    =   abs(snake_case__   ) * (distance**2) / (COULOMBS_CONSTANT * chargea)
								return {"charge1": chargea}
				elif chargea == 0:
								lowercase_	    =   abs(snake_case__   ) * (distance**2) / (COULOMBS_CONSTANT * chargea)
								return {"charge2": chargea}
				elif distance == 0:
								lowercase_	    =   (COULOMBS_CONSTANT * charge_product / abs(snake_case__   )) ** 0.5
								return {"distance": distance}
				raise ValueError('''Exactly one argument must be 0'''   )


if __name__ == "__main__":
						import doctest

						doctest.testmod()




