Let (C (t )) t ∈R be a cosine function in a unital Banach algebra. We show that if sup t ∈R C (t ) − c(t ) < 2 for some continuous scalar bounded cosine function (c(t )) t ∈R , then the closed subalgebra generated by (C (t )) t ∈R is isomorphic to C k for some positive integer k. If, further, sup t ∈R C (t )−c(t ) < 8 3 3, then C (t ) = c(t ) for t ∈ R.