(expr, given_condition=None, numsamples=1,
               evalf=True, **kwargs)
Sampling version of E

    See Also
    ========
    P
    sampling_P
    sampling_density
Sampling version of E
Sampling version of E
def sampling_E(expr, given_condition=None, numsamples=1,
               evalf=True, **kwargs):
    """
    Sampling version of E

    See Also
    ========
    P
    sampling_P
    sampling_density
    """

    samples = sample_iter(expr, given_condition,
                          numsamples=numsamples, **kwargs)

    result = Add(*list(samples)) / numsamples
    if evalf:
        return result.evalf()
    else:
        return result
def sampling_E ( expr , given_condition = None , numsamples = 1 , evalf = True , * * kwargs ) : samples = sample_iter ( expr , given_condition , numsamples = numsamples , * * kwargs ) result = Add ( * list ( samples ) ) / numsamples if evalf : return result . evalf ( ) else : return result