Degree-ten Taylor bounds and tangent lines for sin and cos #
Mathlib's Real.cos_bound and Real.sin_bound approximate cos x and sin x on [-1, 1] by
their Taylor polynomials of degree 2 and 3, with errors of order x ^ 4 and x ^ 5. Some
numerical constants need more precision: the Goemans–Williamson constant, for instance, is
determined by a tangent line whose margin is about 10⁻⁵. This module gives the Taylor polynomials
of degree 8 and 9, both with error at most |x| ^ 10 * (11 / 36288000) (about 3 · 10⁻⁷ at
|x| = 1), from Mathlib's Complex.exp_bound at x * I with ten terms. It also states the
tangent-line bound of the concave function cos on [-π/2, π/2].
Main results #
Real.cos_bound_ten,Real.sin_bound_ten: degree-ten Taylor bounds forcosandsinon[-1, 1].Real.cos_le_cos_sub_sin_mul: on[-π/2, π/2],coslies below its tangent lines.