How can I do an elliptic curve in Matlab?

33 ビュー (過去 30 日間)
Ranin Khoury
Ranin Khoury 2022 年 5 月 24 日
回答済み: Alan Stevens 2022 年 5 月 24 日
How can I do an elliptic curve in Matlab for the following function ' y^2-y=x^3-x ' ?

回答 (1 件)

Alan Stevens
Alan Stevens 2022 年 5 月 24 日
Here's one simple way:
% y^2 - y = x^3 - x
% y = (1 +/- sqrt(4x^3 - 4x + 1))/2
n = 1000;
x = -2:1/n:2;
d = sqrt(4*x.^3-4*x+1);
id = find(d~=real(d));
d(id) = nan;
y1 = (1 + d)/2;
y2 = (1 - d)/2;
plot(x,y1,'r',x,y2,'r')

カテゴリ

Help Center および File ExchangeFit Postprocessing についてさらに検索

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by