Math.dist: Math group generic for distribution objects.

View source: R/edist.R

Math.distR Documentation

Math group generic for distribution objects.

Description

Handles exp(), log(), sqrt(), abs(), cos(), sin(), etc.

Usage

## S3 method for class 'dist'
Math(x, ...)

Arguments

x

a dist object

...

additional arguments

Value

A simplified distribution or edist

Examples

# 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

algebraic.dist documentation built on Feb. 27, 2026, 5:06 p.m.