Documentation

LeanCert.Core.IntervalRat.TrigReduced

Computable Range Reduction for Trigonometric Functions #

This file implements range reduction for sin and cos to improve Taylor series convergence for intervals far from 0.

Problem #

Standard Taylor series for sin/cos centered at 0 have remainder bounds of |x|^{n+1} / (n+1)!. For intervals far from 0 (e.g., [10, 11]), this remainder is huge even for moderate n.

Solution: Range Reduction #

Use the periodicity of sin/cos:

By choosing k to bring x - 2πk into [-π, π], the Taylor series converges much faster since |x - 2πk| ≤ π ≈ 3.14.

Main definitions #

Shared range-reduction API #

Computable reduced evaluation #

Computable sin evaluation with range reduction.

Equations
  • One or more equations did not get rendered due to their size.
Instances For

    Computable cos evaluation with range reduction.

    Equations
    • One or more equations did not get rendered due to their size.
    Instances For

      sin x ∈ sinComputableReduced I for all x ∈ I

      cos x ∈ cosComputableReduced I for all x ∈ I