



"""simple docstring"""
__SCREAMING_SNAKE_CASE  :						Tuple    							=      8.31_4462  # Unit - J mol-1 K-1



def        lowerCAmelCase_(   lowercase_     :							List[str]						,   lowercase_     :							List[str]						,   lowercase_     :							Dict							)	->       float:
				if moles < 0 or kelvin < 0 or volume < 0:
								raise ValueError('''Invalid inputs. Enter positive value.'''							)
				return moles * kelvin * UNIVERSAL_GAS_CONSTANT / volume



def        lowerCAmelCase_(   lowercase_     :							List[str]						,   lowercase_     :							Union[str, Any]						,   lowercase_     :							Tuple							)	->       float:
				if moles < 0 or kelvin < 0 or pressure < 0:
								raise ValueError('''Invalid inputs. Enter positive value.'''							)
				return moles * kelvin * UNIVERSAL_GAS_CONSTANT / pressure


if __name__ == "__main__":
			from doctest import testmod

			testmod()




"""simple docstring"""
from __future__ import annotations

from math import pow, sqrt



def        lowerCAmelCase_(   lowercase_     :							float						,   lowercase_     :							float						,   lowercase_     :							float							)	->       dict[str, float]:
				if (resistance, reactance, impedance).count(0							) != 1:
								raise ValueError('''One and only one argument must be 0'''							)
				if resistance == 0:
								return {"resistance": sqrt(pow(lowercase_						,   2							) - pow(lowercase_						,   2							)							)}
				elif reactance == 0:
								return {"reactance": sqrt(pow(lowercase_						,   2							) - pow(lowercase_						,   2							)							)}
				elif impedance == 0:
								return {"impedance": sqrt(pow(lowercase_						,   2							) + pow(lowercase_						,   2							)							)}
				else:
								raise ValueError('''Exactly one argument must be 0'''							)


if __name__ == "__main__":
			import doctest

			doctest.testmod()
