Issue #6362 has been updated by nobu (Nobuyoshi Nakada).


=begin
What about a new class, say Modulo?

  m = Modulo.new(101, 11)
  m.to_i #=> 2
  m**4 #=> 5
=end

----------------------------------------
Feature #6362: Modular exponentiation/inverse
https://bugs.ruby-lang.org/issues/6362#change-26293

Author: MartinBosslet (Martin Bosslet)
Status: Feedback
Priority: Normal
Assignee: MartinBosslet (Martin Bosslet)
Category: core
Target version: 


I'd like to ask your opinion about adding two methods for modular 
exponentiation/modular inverse to integer classes. Is this 
functionality too specific or would this be a welcome addition?


-- 
http://bugs.ruby-lang.org/