powered by
Element-wise \(x \times \log(x)\) function on numeric or complex vectors (or objects which can be coerced to them).
# S3 method for default xlogx(x)
Vector or array containing the values of x*log(x).
x*log(x)
numeric or complex vectors or objects which can be coerced to such.
Chloe Serre-Combe, Amelie Vernay
See base::Arithmetic and base::log() for details about the multiplication operation and log function.
base::log()
Note: by convention xlogx(0) returns 0.
xlogx(0)
0
base::Arithmetic, base::log()
xlogx(4) xlogx(1:10)
Run the code above in your browser using DataLab