import math


def law_of_cosines(a, b, angle):
    """
        Return the side of a triangle given its sides a, b and the angle between them (Law of cosines)
    """
    return math.sqrt(
                    a**2 +
                    b**2 -
                    2*a*b*math.cos(math.radians(angle))
                )