I'm working Problem H of section I of chapter V of Miranda's book. The problem says
Let $X$ be the smooth projective plane curve defined by $y^2z=x^3-xz^2$. Compute the intersection divisors of the lines $x=0$, $y=0$ and $z=0$ with $X$.
Roughly speaking, take for example the intersection with $y=0$: $$ \begin{cases} y^2z=x^3-xz^2 \\ x=0 \end{cases} \quad \Longrightarrow \quad x(x^2-z^2)=0 \quad \Longrightarrow x=0, x=\pm z $$ so I get the points $p_1=[0:0:1]$, $p_2=[1:0:1]$ and $p_3=[1:0:-1]$. So I'm expect to get $$div(y)=p_1+p_2+p_3$$ and it works in this case: I take for $p_1$ the homogeneous polynomial of degree 1 $H=z$, so $H(p_1)\ne 0$ and I can compute $$div(y)(p_1)=ord_{p_1}(x/z)=ord_{p_1}(x)-ord_{p_1}(z)=1-0=1.$$ I repeat the computation also for $p_2$ and $p_3$ and it's all ok.
The problem come up with $x=0$: $$\begin{cases} y^2z=x^3-xz^2 \\ x=0 \end{cases} \quad \Longrightarrow y^2z=0 $$ so I get $p_1=[0:0:1]$ (counted two times, like in the affine real picture) and $p_2=[0:1:0]$. So I expect that my divisor will be in the form $$div(x)=2p_1+p_2.$$ Like before, I take $H=z$ so $H(p_1)\ne 0$ and compute using the definition: $$div(x)(p_1)=ord_{p_1}(x/z)=1.$$ Where am I wrong? This it makes me going crazy.
