division

package
v0.0.0-...-736f5eb Latest Latest
Warning

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

Go to latest
Published: Feb 2, 2015 License: MIT Imports: 0 Imported by: 0

README

Extended Euclidean Algorithm

This module implements the extended greatest common divider algorithm.

Pre: two integers a and b

Post: a tuple (x, y) where a*x + b*y = gcd(a, b) (bezout coefficients)

Pseudo Code: http://en.wikipedia.org/wiki/Extended_Euclidean_algorithm

Benchmark

for a :=131313131, b := 121212121, the benchmark ran in 6.338s:

BenchmarkGetCoeff        1       6255517486 ns/op

Documentation

The Go Gopher

There is no documentation for this package.

Jump to

Keyboard shortcuts

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