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
- One or more equations did not get rendered due to their size.
Instances For
The complex exponential function, defined via its Taylor series
Equations
- Complex.exp z = CauSeq.lim (Complex.exp' z)
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 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 = { toOneHom := { toFun := fun z => 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 = { toOneHom := { toFun := fun x => Real.exp (↑Multiplicative.toAdd x), map_one' := Real.expMonoidHom.proof_1 }, map_mul' := Real.expMonoidHom.proof_2 }
Instances For
This is an intermediate result that is later replaced by Real.add_one_le_exp
; use that lemma
instead.
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
Instances For
Extension for the positivity
tactic: Real.exp
is always positive.
Equations
- One or more equations did not get rendered due to their size.