I'm working on elliptic curve points, and I know that some possible points require separate consideration. For example, if I want to add points P and Q, and P is a point in infinity and Q is a point in infinity - I will have the infinity point. If Q = -P, adding P + Q results in the infinity point. But what in the cases:
- if $P = (x,y1)$ and $Q = (-x, y2)$
- if $P = (x, y1)$ and $Q = (-x, y1)$
Points P and Q are not opposite, since the plot is symmetric over axes x, not axes y. Should I treat those cases somehow separately? Are those points even on the same curve?