Matlab Pisagor teorisi Özel üçgenleri bulan program için matlab html doc üreticisinin ürettiği döküman
s=10000; tic; out=pisagorFact(s); disp(out) ellapse=toc; disp(['s = ',num2str(s),' elleapse time: ',num2str(ellapse)])
5 3 4
13 5 12
25 7 24
61 11 60
85 13 84
145 17 144
181 19 180
265 23 264
421 29 420
481 31 480
685 37 684
841 41 840
925 43 924
1105 47 1104
1405 53 1404
1741 59 1740
1861 61 1860
2245 67 2244
2521 71 2520
2665 73 2664
3121 79 3120
3445 83 3444
3961 89 3960
4705 97 4704
5101 101 5100
5305 103 5304
5725 107 5724
5941 109 5940
6385 113 6384
8065 127 8064
8581 131 8580
9385 137 9384
9661 139 9660
s = 10000 elleapse time: 0.084643
Yorumlar
Yorum Gönder