Function to determine whether an object x is an exponential object.

is_exponential(x)

Arguments

x

The object to test

Value

Logical; TRUE if x is an exponential.

Examples

is_exponential(exponential(1))
#> [1] TRUE
is_exponential(normal(0, 1))
#> [1] FALSE