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
1 Ansicht (letzte 30 Tage)
Ältere Kommentare anzeigen
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
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
Antworten (0)
Siehe auch
Kategorien
Mehr zu Genetic Algorithm 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!