f with respect to a univariate_dist object x.R/univariate_dist.R
expectation.univariate_dist.RdAssumes the support is a contiguous interval that has operations for retrieving the lower and upper bounds.
# S3 method for class 'univariate_dist'
expectation(x, g, ..., control = list())