import math


def sector(angle, radius, rad=False):
    """Finds the area of a sector of a circle"""
    if rad:
        angle = math.degrees(angle)
    return (angle / 360) * (math.pi * (radius ** 2))