def pow(a, b):
    """ 
    Finds a^b using recursion.
    Params:
      a (float) - Base
      b (int) - Exponent
    Returns:
      Value of a^b (float)
    """
    if(type(b) != int):
      print("ERROR: pow() not callable with doubles!")
      return 0
    if(b == 0):
      return 1
    else:
      return a * pow(a, b-1)