フィルターのクリア

storing values using for loop in elliptic curves

2 ビュー (過去 30 日間)
sadiqa ilyas
sadiqa ilyas 2019 年 8 月 14 日
コメント済み: KALYAN ACHARJYA 2019 年 8 月 15 日
Hi I am using elliptic curves point multiplication. I have used for loop but it does not store values properly.
clear all
G=[742,917];
a=0;
b=-19;
n=991;
f(1)=1;
f(2)=1;
newpoint=zeros();
for i=1:14
f(i+2)=f(i+1)+f(i);
newpoint=multell(G,f(i+2),a,b,n)
end
newpoint
multell is a ftn. It does not store all the vales of new print

採用された回答

KALYAN ACHARJYA
KALYAN ACHARJYA 2019 年 8 月 14 日
編集済み: KALYAN ACHARJYA 2019 年 8 月 14 日
"It does not store all the vales of new print"
newpoint(i)=multell(G,f(i+2),a,b,n)
% Save the single value in array
% If length of the array will be different than i, use differ3ent index variable
or
newpoint{i}=multell(G,f(i+2),a,b,n)
% If above return the range of value use cell array
Do the proper preallocation before for loop, or provided the detail of multell, so that I can try on it.
  2 件のコメント
sadiqa ilyas
sadiqa ilyas 2019 年 8 月 15 日
multel is a function which multiply a point of elliptic curve e.g(9,7) with scalar number.
2*(9,7)= (x,y)
and the loop will return 16 such points.
KALYAN ACHARJYA
KALYAN ACHARJYA 2019 年 8 月 15 日
Please do share from your code
>>whos newpoint

サインインしてコメントする。

その他の回答 (0 件)

カテゴリ

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

タグ

Community Treasure Hunt

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

Start Hunting!

Translated by