Can you find a topology on the set of real numbers $\mathbb{R}$ so that all polynomials $p(x)=a_nx^n+...a_1x+a_0$ considered as functions from $\mathbb{R}$ to $\mathbb{R}$ are continuous functions but the cosine function $\cos \left(x\right)$ is not a continuous function from $\mathbb{R}$ to $\mathbb{R}$.
I tried cofinite topology and Zariski Topology but I didn't succesful. Can you help?