math

package
v0.0.0-...-0b3308b Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jun 19, 2017 License: MPL-2.0 Imports: 1 Imported by: 4

Documentation

Overview

Package dissent/math contains big.Int arithmetic functions that probably belong in Go's math/big package.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Jacobi

func Jacobi(x, y *big.Int) int

Compute the Jacobi symbol of (x/y) using Euclid's algorithm. This is usually much faster modular multiplication via Euler's criterion.

func Sqrt

func Sqrt(z *big.Int, a *big.Int, p *big.Int) bool

Set z to one of the square roots of a modulo p if a square root exists. The modulus p must be an odd prime. Returns true on success, false if input a is not a square modulo p.

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL