<SYSTEM_TASK:>
Solve the following problem using Python, implementing the functions described below, one line at a time
<END_TASK>
<USER_TASK:>
Description:
 def isoncurve(self, p):
 """ verifies if a point is on the curve """

        return p.iszero() or p.y ** 2 == p.x ** 3 + self.a * p.x + self.b