Filter löschen
Filter löschen

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 Ansichten (letzte 30 Tage)
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 Kommentar
Walter Roberson
Walter Roberson am 8 Nov. 2013
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

Melden Sie sich an, um zu kommentieren.

Antworten (0)

Kategorien

Mehr zu Programming finden Sie in Help Center und File Exchange

Produkte

Community Treasure Hunt

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

Start Hunting!

Translated by