20.1. Basic definitions
Mathlib contains each of the following definitions:
#check Complex.sin
#check Complex.cos
#check Complex.tan
For Complex.tan, which has poles at ± π / 2, ± 3π / 2, ± 5π / 2,
the junk value 0 is used:
open Complex in
example (k : ℤ) :
tan (π / 2 + k * π) = 0 := k:ℤ⊢ tan (↑π / 2 + ↑k * ↑π) = 0
k:ℤ⊢ ↑π / 2 + ↑k * ↑π = ↑(2 * k + 1) * ↑π / 2
All goals completed! 🐙
The hyperbolic variants are also available:
#check Complex.sinh
#check Complex.cosh
#check Complex.tanh
In addition, specialised variants over the real numbers exist:
#check Real.sin
#check Real.cos
#check Real.tan
as well as the "inverse" functions over the reals:
#check Real.arcsin
#check Real.arccos
#check Real.arctan