
"""simple docstring"""




from __future__ import annotations

from collections import namedtuple


def     __magic_name__      ( __snake_case							:			float	,					__snake_case							:			float	,					__snake_case							:			float    )					->							tuple:
       lowercase       :							Union[str, Any]									=				namedtuple("result"	,					"name value"    )
       if (voltage, current, power).count(0    ) != 1:
              raise ValueError("Only one argument must be 0"    )
       elif power < 0:
              raise ValueError(
                  "Power cannot be negative in any electrical/electronics system"    )
       elif voltage == 0:
              return result("voltage"	,					power / current    )
       elif current == 0:
              return result("current"	,					power / voltage    )
       elif power == 0:
              return result("power"	,					float(round(abs(voltage * current    )	,					2    )    )    )
       else:
              raise ValueError("Exactly one argument must be 0"    )


if __name__ == "__main__":
   import doctest

   doctest.testmod()




"""simple docstring"""




def     __magic_name__      ( __snake_case							:			int	,					__snake_case							:			int    )					->							Any:
       if b == 0:
              return 1
       if (b % 2) == 0:
              return actual_power(__snake_case	,					int(b / 2    )    ) * actual_power(__snake_case	,					int(b / 2    )    )
       else:
              return a * actual_power(__snake_case	,					int(b / 2    )    ) * actual_power(__snake_case	,					int(b / 2    )    )


def     __magic_name__      ( __snake_case							:			int	,					__snake_case							:			int    )					->							float:
       if b < 0:
              return 1 / actual_power(__snake_case	,					__snake_case    )
       return actual_power(__snake_case	,					__snake_case    )


if __name__ == "__main__":
   print(power(-2, -3))


