[erlang-questions] Integer square root

Bob Ippolito bob@REDACTED
Tue Jan 26 17:07:07 CET 2010


There's a copy of integer exponentiation in mochiweb's mochinum module
(int_pow) and also in recent versions of io_lib_format (but this one
is not exported). The crypto module has modular exponentiation too as
mod_exp but that doesn't use native erlang integers.

On Tue, Jan 26, 2010 at 7:17 AM, Kenji Rikitake <kenji.rikitake@REDACTED> wrote:
> Hmmmm. It looks like I reinvented the wheel :p
>
> The isqrt/1 (commented out) function is at
> lib/ssh/src/ssh_math.erl
>
> Lessons: read the code before you try to write :p
>
> Kenji Rikitake
>
> ________________________________________________________________
> erlang-questions mailing list. See http://www.erlang.org/faq.html
> erlang-questions (at) erlang.org
>
>


More information about the erlang-questions mailing list