Actions
Feature #11003
closedFast modular exponentiation
[ruby-core:<unknown>]
Description
I would like to suggest, implementing "fast Modular Exponentiation " (http://en.wikipedia.org/wiki/Modular_exponentiation) for fixnum class.
Eg: A function like pow(a, n, MOD) can be computed more efficiently than (a**n) % MOD
Actions
Like0
Like0Like0Like0Like0