Elliptic curve Curve25519 is used in many applications, including within Tor networks. It has the form of \(y^2 = x^3 + ax^2 + bx + c\). This page outlines a plot for elliptic curve. The initial plot is \(y^2=x^3 + 486,662 x^2 + x\):
Standard Elliptic curve plots |
Source code
The following outlines the Python code used:
import numpy as np import matplotlib.pyplot as pl import sys a = 486662 b = 1 file1 ='1111' import numpy as np import matplotlib.pyplot as plt y, x = np.ogrid[ -200000000:200000000:100j,-500000:500000:100j] plt.contour(x.ravel(), y.ravel(), pow(y, 2) - pow(x, 3) - pow(x,2) * a - x * b, [0]) #x = np.linspace(-5, 5) #plt.plot(x, 2*x+b) plt.grid() #plt.show() file = "c:\\inetpub\\wwwroot\\log\\svg\\"+file1+".svg" plt.savefig(file) f2= "c:\\inetpub\\wwwroot\\log\\svg\\"+file1+".png" plt.savefig(f2,format='PNG')