math

package
v1.1.0 Latest Latest
Warning

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

Go to latest
Published: Dec 19, 2022 License: Apache-2.0 Imports: 0 Imported by: 0

Documentation

Overview

Package math contains some arithmetic helper functions.

Origin of the GCD and LCM is the Google Playground, with simplifications by Intel.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GCD

func GCD(a, b uint64) uint64

GCD returns the greatest common divisor, using the Euclidian algorithm.

func LCM

func LCM(a, b uint64) uint64

LCM returns the least common multiple.

Types

This section is empty.

Jump to

Keyboard shortcuts

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