mathutils

package
v0.0.0-...-a84d436 Latest Latest
Warning

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

Go to latest
Published: Dec 22, 2024 License: MIT Imports: 0 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func AbsInt

func AbsInt(n int) int

func GCD

func GCD(a, b int) int

Stolen from : https://siongui.github.io/2017/06/03/go-find-lcm-by-gcd/ greatest common divisor (GCD) via Euclidean algorithm

func LCM

func LCM(a, b int, integers ...int) int

find Least Common Multiple (LCM) via GCD

Types

This section is empty.

Jump to

Keyboard shortcuts

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