# How to draw a curve through every point. [closed]

I have x,y coordinates. They are arranged at fixed intervals of 1 unit along the x axis. The Y values are arbitrary. I want to draw smooth curvy line that passes through all of them. Or rather, I want a formula to find the y for any value of x for the hypothetical line.

• This asks for an interpolation of the $(x,y)$ coordinates "arranged at fixed intervals", or if you intend to "find the $y$ for any value of $x$" this would be extrapolation when $x$ falls outside the intervals of given coordinates. A good interpolation procedure is chosen based on what you plan to do with the curve; there is no single best procedure. – hardmath Mar 6 '16 at 15:10