Skip to content

Fast exponentiation for bigint + modulo #1

@Jamesernator

Description

@Jamesernator

One of the more common things I've used when using bigints is wanting power + modulo, generally this involves writing my own fast exponentiation function (using exponentation by squaring), it would be nice for Math.pow to support the third argument when used with bigints to enable this.

Most languages I've looked at already support this (e.g. in Python via pow(...), Java by bigInteger.modPow, and so on) so there is a lot of prior art.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions