Learn R Programming

SLEMI (version 1.0.2)

aux_x_log_y: Calculation of expression \(x\cdot \log y\)

Description

Internal, auxiliary functions

Usage

aux_x_log_y(x, y)

Value

Function calculates the value of expression \(x\cdot \log y\) element-wise in a numerically stable way. The result is a numeric vector of the same length as x. It is assumed that \(0\cdot \log 0 = 0\).

Arguments

x

is a numeric vector

y

is a numeric vector (the same length of x)

Examples

Run this code
SLEMI:::aux_x_log_y(1,2)
SLEMI:::aux_x_log_y(0,0)
SLEMI:::aux_x_log_y(1000,100)

Run the code above in your browser using DataLab