I don't understand something in the exercise 2.17 of Algebraic Curves of Fulton.
Let $k = \overline{k}$ a field and $V$ be the variety defined by the zero of $ I = ( y^2 - x^2(x-1) ) \subset k[x,y]$.
Let $\overline{x}, \overline{y}$ be the coordinate functions. Then $z = \frac{\overline{y}}{\overline{x}}$ ìs a rational function with a pole at (0,0) but $z^2 = x-1$ and therefore has no poles on $\mathbb A^2_k$.
I don't understand how it's possible, because I tried to see poles exactly as in complex analysis (if $f$ has a pole at $z_0$ then $f^2$ too) but it seems not possible (or I made a mistake ...)