Project

General

Profile

Actions

Feature #11003

closed

Fast modular exponentiation

Added by venkatvb (venkatesh babu) over 9 years ago. Updated about 7 years ago.

Status:
Closed
Target version:
-
[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


Related issues 1 (0 open1 closed)

Is duplicate of Ruby master - Feature #12508: Integer#mod_powClosedmatz (Yukihiro Matsumoto)Actions
Actions

Also available in: Atom PDF

Like0
Like0Like0Like0Like0