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 view (last 30 days)
Show older comments
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 Comment
Walter Roberson
on 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
Answers (0)
See Also
Categories
Find more on Genetic Algorithm in Help Center and File Exchange
Products
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!