import math


def cal_matching_score(sequence_len: int):
    """
    Calculate matching score.

    Args:
        sequence_len (int): Pattern length.
    """
    return 2 / (1 + math.pow(math.e, -0.1 * sequence_len)) - 1