import math


def sigmoid(x):
    """Sigmoid activation function

    Args:
        x (float): Value to be processed

    Returns:
        y (float): Output
    """
    y = 1.0 / (1 + math.exp(-x))
    return y