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 = ⟨fun (n : ℕ) => ∑ m ∈ Finset.range n, z ^ m / ↑m.factorial, ⋯⟩
Instances For
The complex exponential function, defined via its Taylor series
Equations
- Complex.exp z = (Complex.exp' z).lim
Instances For
The complex sine function, defined via exp
Equations
- Complex.sin z = (Complex.exp (-z * Complex.I) - Complex.exp (z * Complex.I)) * Complex.I / 2
Instances For
The complex cosine function, defined via exp
Equations
- Complex.cos z = (Complex.exp (z * Complex.I) + Complex.exp (-z * Complex.I)) / 2
Instances For
The complex tangent function, defined as sin z / cos z
Equations
- Complex.tan z = Complex.sin z / Complex.cos z
Instances For
The complex cotangent function, defined as cos z / sin z
Equations
- z.cot = Complex.cos z / Complex.sin z
Instances For
The complex hyperbolic sine function, defined via exp
Equations
- Complex.sinh z = (Complex.exp z - Complex.exp (-z)) / 2
Instances For
The complex hyperbolic cosine function, defined via exp
Equations
- Complex.cosh z = (Complex.exp z + Complex.exp (-z)) / 2
Instances For
The complex hyperbolic tangent function, defined as sinh z / cosh z
Equations
- Complex.tanh z = Complex.sinh z / Complex.cosh z
Instances For
scoped notation for the complex exponential function
Equations
- Complex.termCexp = Lean.ParserDescr.node `Complex.termCexp 1024 (Lean.ParserDescr.symbol "cexp")
Instances For
scoped notation for the real exponential function
Equations
- Real.termRexp = Lean.ParserDescr.node `Real.termRexp 1024 (Lean.ParserDescr.symbol "rexp")
Instances For
the exponential function as a monoid hom from Multiplicative ℂ
to ℂ
Equations
- Complex.expMonoidHom = { toFun := fun (z : Multiplicative ℂ) => Complex.exp (Multiplicative.toAdd z), map_one' := Complex.expMonoidHom.proof_1, map_mul' := Complex.expMonoidHom.proof_2 }
Instances For
De Moivre's formula
the exponential function as a monoid hom from Multiplicative ℝ
to ℝ
Equations
- Real.expMonoidHom = { toFun := fun (x : Multiplicative ℝ) => Real.exp (Multiplicative.toAdd x), map_one' := Real.expMonoidHom.proof_1, map_mul' := Real.expMonoidHom.proof_2 }
Instances For
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 = ∑ m ∈ Finset.range n, x ^ m / ↑m.factorial + x ^ n / ↑n.factorial * r
Instances For
Extension for the positivity
tactic: Real.exp
is always positive.
Instances For
Extension for the positivity
tactic: Real.cosh
is always positive.