The type of angles #
THIS FILE IS SYNCHRONIZED WITH MATHLIB4. Any changes to this file require a corresponding PR to mathlib4.
In this file we define real.angle
to be the quotient group ℝ/2πℤ
and prove a few simple lemmas
about trigonometric functions and angles.
Equations
Coercion ℝ → angle
as an additive homomorphism.
Equations
An induction principle to deduce results for angle
from those for ℝ
, used with
induction θ using real.angle.induction_on
.
The sine of a real.angle
.
Equations
- θ.sin = real.sin_periodic.lift θ
The cosine of a real.angle
.
Equations
- θ.cos = real.cos_periodic.lift θ
Convert a real.angle
to a real number in the interval Ioc (-π) π
.
The tangent of a real.angle
.
The sign of a real.angle
is 0
if the angle is 0
or π
, 1
if the angle is strictly
between 0
and π
and -1
is the angle is strictly between -π
and 0
. It is defined as the
sign of the sine of the angle.
Suppose a function to angles is continuous on a connected set and never takes the values 0
or π
on that set. Then the values of the function on that set all have the same sign.