Learn R Programming

updog (version 2.1.5)

log_sum_exp_2: Log-sum-exponential trick using just two doubles.

Description

Log-sum-exponential trick using just two doubles.

Usage

log_sum_exp_2(x, y)

Value

The log of the sum of the exponential of x and y.

Arguments

x

A double.

y

Another double.

Author

David Gerard