powered by
Handles exp(), log(), sqrt(), abs(), cos(), sin(), etc.
# S3 method for dist Math(x, ...)
A simplified distribution or edist
a dist object
additional arguments
# exp(Normal) simplifies to LogNormal z <- exp(normal(0, 1)) z # sqrt of a distribution (no closed-form rule, remains edist) w <- sqrt(exponential(1)) is_edist(w) # TRUE
Run the code above in your browser using DataLab