Extended nonnegative real logarithm #
We define log
as an extension of the logarithm of a positive real
to the extended nonnegative reals ℝ≥0∞
. The function takes values
in the extended reals EReal
, with log 0 = ⊥
and log ⊤ = ⊤
.
Main definitions #
ENNReal.log
: The extension of the real logarithm toℝ≥0∞
.ENNReal.log_orderIso
,ENNReal.log_equiv
:log
seen respectively as an order isomorphism and an homeomorphism.
Main Results #
ENNReal.log_strictMono
:log
is increasing;ENNReal.log_injective
,ENNReal.log_surjective
,ENNReal.log_bijective
:log
is injective, surjective, and bijective;ENNReal.log_mul_add
,ENNReal.log_pow
,ENNReal.log_rpow
:log
satisfy the identitieslog (x * y) = log x + log y
andlog (x ^ y) = y * log x
(with eithery ∈ ℕ
ory ∈ ℝ
).
TODO #
- Define
exp
onEReal
and prove its basic properties.
Tags #
ENNReal, EReal, logarithm
Definition #
The logarithm function defined on the extended nonnegative reals ℝ≥0∞
to the extended reals EReal
. Coincides with the usual logarithm function
and with Real.log
on positive reals, and takes values log 0 = ⊥
and log ⊤ = ⊤
.
Conventions about multiplication in ℝ≥0∞
and addition in EReal
make the identity
log (x * y) = log x + log y
unconditional.
Instances For
Monotonicity #
Algebraic properties #
Topological properties #
log
as a homeomorphism.
Equations
- ENNReal.log_homeomorph = ENNReal.log_orderIso.toHomeomorph