


def      UpperCAmelCase__		(UpperCamelCase_				,UpperCamelCase_							):



     """simple docstring"""






     if a < 0 or b < 0:
          raise ValueError('''the value of both inputs must be positive'''							)
     snake_case											=							str(bin(UpperCamelCase_							)							)[2:]  # remove the leading "0b"
     snake_case											=							str(bin(UpperCamelCase_							)							)[2:]
     snake_case											=							max(len(UpperCamelCase_							)				,len(UpperCamelCase_							)							)
     return "0b" + "".join(
         str(int('''1''' in (char_a, char_b)							)							)
         for char_a, char_b in zip(a_binary.zfill(UpperCamelCase_							)				,b_binary.zfill(UpperCamelCase_							)							)							)


if __name__ == "__main__":
 import doctest

 doctest.testmod()








from __future__ import annotations

from math import pow, sqrt
def      UpperCAmelCase__		(UpperCamelCase_				,UpperCamelCase_				,UpperCamelCase_							):



     """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(UpperCamelCase_				,2							) - pow(UpperCamelCase_				,2							)							)}
     elif reactance == 0:
          return {"reactance": sqrt(pow(UpperCamelCase_				,2							) - pow(UpperCamelCase_				,2							)							)}
     elif impedance == 0:
          return {"impedance": sqrt(pow(UpperCamelCase_				,2							) + pow(UpperCamelCase_				,2							)							)}
     else:
          raise ValueError('''Exactly one argument must be 0'''							)


if __name__ == "__main__":
 import doctest

 doctest.testmod()




