Exponential, trigonometric and hyperbolic trigonometric functions #
This file contains the definitions of the real and complex exponential, sine, cosine, tangent, hyperbolic sine, hyperbolic cosine, and hyperbolic tangent functions.
The Cauchy sequence consisting of partial sums of the Taylor series of the complex exponential function
Equations
- Complex.exp' z = { val := fun (n : ℕ) => Finset.sum (Finset.range n) fun (m : ℕ) => z ^ m / ↑(Nat.factorial m), property := ⋯ }
The complex exponential function, defined via its Taylor series
Equations
- Complex.exp z = CauSeq.lim (Complex.exp' z)
The complex sine function, defined via exp
Equations
- Complex.sin z = (Complex.exp (-z * Complex.I) - Complex.exp (z * Complex.I)) * Complex.I / 2
The complex cosine function, defined via exp
Equations
- Complex.cos z = (Complex.exp (z * Complex.I) + Complex.exp (-z * Complex.I)) / 2
The complex tangent function, defined as sin z / cos z
Equations
- Complex.tan z = Complex.sin z / Complex.cos z
The complex hyperbolic sine function, defined via exp
Equations
- Complex.sinh z = (Complex.exp z - Complex.exp (-z)) / 2
The complex hyperbolic cosine function, defined via exp
Equations
- Complex.cosh z = (Complex.exp z + Complex.exp (-z)) / 2
The complex hyperbolic tangent function, defined as sinh z / cosh z
Equations
- Complex.tanh z = Complex.sinh z / Complex.cosh z
scoped notation for the complex exponential function
Equations
- Complex.termCexp = Lean.ParserDescr.node `Complex.termCexp 1024 (Lean.ParserDescr.symbol "cexp")
scoped notation for the real exponential function
Equations
- Real.termRexp = Lean.ParserDescr.node `Real.termRexp 1024 (Lean.ParserDescr.symbol "rexp")
the exponential function as a monoid hom from Multiplicative ℂ
to ℂ
Equations
- One or more equations did not get rendered due to their size.
De Moivre's formula
the exponential function as a monoid hom from Multiplicative ℝ
to ℝ
Equations
- One or more equations did not get rendered due to their size.
A finite initial segment of the exponential series, followed by an arbitrary tail.
For fixed n
this is just a linear map wrt r
, and each map is a simple linear function
of the previous (see expNear_succ
), with expNear n x r ⟶ exp x
as n ⟶ ∞
,
for any r
.
Equations
- Real.expNear n x r = (Finset.sum (Finset.range n) fun (m : ℕ) => x ^ m / ↑(Nat.factorial m)) + x ^ n / ↑(Nat.factorial n) * r
Extension for the positivity
tactic: Real.exp
is always positive.
Extension for the positivity
tactic: Real.cosh
is always positive.