Handles exp(), log(), sqrt(), abs(), cos(), sin(), etc.
# S3 method for class 'dist'
Math(x, ...)A simplified distribution or edist
# exp(Normal) simplifies to LogNormal
z <- exp(normal(0, 1))
z
#> Log-normal distribution (meanlog = 0, sdlog = 1)
# sqrt of a distribution (no closed-form rule, remains edist)
w <- sqrt(exponential(1))
is_edist(w) # TRUE
#> [1] TRUE