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
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 个)

类别

Help CenterFile Exchange 中查找有关 Programming 的更多信息

产品

Community Treasure Hunt

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

Start Hunting!

Translated by