def cos_angle(left_side: float, right_side: float, third_side: float) -> float:
    """
    Calculate cos of angle if give 3 side of triangle
    """
    return (left_side ** 2 + right_side ** 2 - third_side ** 2) / (2 * left_side * right_side)