Skip to content
Snippets Groups Projects
Commit 0caa869e authored by Naga Suramouli's avatar Naga Suramouli
Browse files

Upload New File

parent e710b668
No related branches found
No related tags found
No related merge requests found
def Pointvalidation_affine(x,y,a,b,n,PRECISION):
x_poly= str_to_poly(x)
y_poly=str_to_poly(y)
print 'x_poly=',x_poly
print 'y_poly=',y_poly
#Calculation of resultant coordinates
L_poly = ( (y_poly ) *(y_poly ) ) + ( (x_poly ) * (y_poly ) )
R_poly = ( (x_poly ) * (x_poly ) * (x_poly ) ) + ((x_poly ) * (x_poly ) * a ) + b
L_poly-R_poly = 0
print 'L=',poly_to_str(L_poly)
print 'R=',poly_to_str(R_poly)
print 'L-R=', poly_to_str(L_poly-R_poly)
#where the equation should satisfy with the parameters to validate point on curve
# y.y + xy = x.x.x +a.x.x + b
\ No newline at end of file
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment