Hello,
Can anyone explain why the pseudo code listed here
http://en.wikipedia.org/wiki/Modular_exponentiation#Right-to-left_binary_method
does not work with a fractional modulus? Plugging in the values base = 10, exponent = 3 and modulus = 7.1 (1000 % 7.1) yields a result of 1.74 instead of 6.
Thank you!
Replogle
Can anyone explain why the pseudo code listed here
http://en.wikipedia.org/wiki/Modular_exponentiation#Right-to-left_binary_method
does not work with a fractional modulus? Plugging in the values base = 10, exponent = 3 and modulus = 7.1 (1000 % 7.1) yields a result of 1.74 instead of 6.
Thank you!
Replogle