ruby-core@ruby-lang.org archive (unofficial mirror)
 help / color / mirror / Atom feed
From: "mame (Yusuke Endoh)" <mame@tsg.ne.jp>
To: ruby-core@ruby-lang.org
Subject: [ruby-core:44658] [ruby-trunk - Feature #6362][Feedback] Modular exponentiation/inverse
Date: Fri, 27 Apr 2012 03:10:44 +0900	[thread overview]
Message-ID: <redmine.journal-26225.20120427031043@ruby-lang.org> (raw)
In-Reply-To: redmine.issue-6362.20120426095205@ruby-lang.org


Issue #6362 has been updated by mame (Yusuke Endoh).

Status changed from Open to Feedback
Assignee set to MartinBosslet (Martin Bosslet)

Personally I like this proposal, but it seems to require:

  - use cases (Well, personally I often use them for Project Euler :-)
  - candidates of method name (pow_mod / inv_mod?)
  - a detailed spec (especially corner cases, e.g., not coprime case, negative modulo, etc.)
  - a patch
  - other kinds of modular arithmetic are not needed? (add_mod, mul_mod, sqrt_mod, ...)

-- 
Yusuke Endoh <mame@tsg.ne.jp>
----------------------------------------
Feature #6362: Modular exponentiation/inverse
https://bugs.ruby-lang.org/issues/6362#change-26225

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/

  parent reply	other threads:[~2012-04-26 18:11 UTC|newest]

Thread overview: 9+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2012-04-26  0:52 [ruby-core:44631] [ruby-trunk - Feature #6362][Open] Modular exponentiation/inverse MartinBosslet (Martin Bosslet)
2012-04-26 18:05 ` [ruby-core:44657] [ruby-trunk - Feature #6362] " sdaubert (Sylvain Daubert)
2012-04-26 18:10 ` mame (Yusuke Endoh) [this message]
2012-04-28  0:32 ` [ruby-core:44712] " MartinBosslet (Martin Bosslet)
2012-04-28 13:20 ` [ruby-core:44733] " nobu (Nobuyoshi Nakada)
2012-05-03  3:03 ` [ruby-core:44829] [ruby-trunk - Feature #6362][Assigned] " mame (Yusuke Endoh)
2012-05-05  1:35 ` [ruby-core:44888] [ruby-trunk - Feature #6362] " MartinBosslet (Martin Bosslet)
2013-02-04 19:24 ` [ruby-core:51848] " spastorino (Santiago Pastorino)
2019-10-31  4:23 ` [ruby-core:95599] [Ruby master Feature#6362] " a2him2no4rst

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-list from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

  List information: https://www.ruby-lang.org/en/community/mailing-lists/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=redmine.journal-26225.20120427031043@ruby-lang.org \
    --to=ruby-core@ruby-lang.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).