Documentation

Atlas.RealAnalysis.code.FunctionSequences.WeierstrassApprox

theorem weierstrass_approximation {a b : } (f : C((Set.Icc a b), )) :
∃ (P : Polynomial ), TendstoUniformly (fun (n : ) (x : (Set.Icc a b)) => Polynomial.eval (↑x) (P n)) (⇑f) Filter.atTop

Weierstrass Approximation Theorem. Every continuous real-valued function f on a closed interval [a, b] is the uniform limit of a sequence of polynomials: there exists P : ℕ → ℝ[X] such that Polynomial.eval x (P n) converges to f x uniformly in x ∈ [a, b] as n → ∞.