rmath

package
v0.6.0 Latest Latest
Warning

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

Go to latest
Published: May 6, 2023 License: BSD-3-Clause Imports: 1 Imported by: 0

Documentation

Overview

Package rmath contains mathematical operations, such as sum, min, max, abs, etc...

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Abs added in v0.3.1

func Abs(x int) int

Abs returns the absolute value of the given int

func Max

func Max(n ...int) (max int)

Max returns the maximum of all passed ints. if no ints are passed, then math.MinInt64 is returned

func Min

func Min(n ...int) (min int)

Min returns the minimum of all passed ints. if no ints are passed, then math.MaxInt64 is returned

func Sum

func Sum(n ...int) (sum int)

Sum returns the sum of all passed ints. if no ints are passed, then 0 is returned

Types

This section is empty.

Jump to

Keyboard shortcuts

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