import math


def calculate_frustration(fun, derivative_fun):
    """
    Frustration value based on the given function and its derivative.
    :param fun: the function to calculate the frustration
    :param derivative_fun: The derivative of the provided function.
    :return:
    """
    return fun(0) / math.sqrt(2) / derivative_fun(0)