import math


def kernel(x, f, *args):
    """
    The kernel function
    :param x: float. Gaussian deviate
    :param f: function to integrate
    :param args: list. Additional arguments for function f
    :return: float
    """
    return 1.0 / ((2.0 * math.pi) ** 0.5) * f(x, *args) * math.exp(-0.5 * x ** 2)