programmer la méthode naîve Yn=x^n;Yn=x*x*x..... n fois;ecrire n sous forme binaire,remplacer chaque n par '1':par les lettres'SX',et '0'par les lettres'S'.eliminer la paire'SX'la plus à gauche.résultat=x^n
5 次查看(过去 30 天)
显示 更早的评论
example:
n=(23)de la basse 10
n=(10111) de la basse 2
n=10111
n=SXSSXSXSX, S:square , X :multiplication pour X.
n=SSXSXSX
x:x^2,
x^2:x^4
x^4:x^4*x=x^5
x^5:x^10
x^10:x^11
x^11:x^22
x^22:x^23
1 个评论
Walter Roberson
2013-11-8
Approximate translation:
program the naïve method Yn = x ^ n, Yn = x * x * x ..... n times,
write n in binary form, by replacing each '1' by the letters 'SX' and each '0' with the letters 'S'. eliminate the pair 'SX' leftmost. result = x ^ n
回答(0 个)
另请参阅
产品
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!