math

package
v2.8.0 Latest Latest
Warning

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

Go to latest
Published: Mar 6, 2024 License: MIT Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var ErrorEmpty = errors.New("math: the input list is empty")

Functions

func Average

func Average[T constraints.Integer | constraints.Float](nums ...T) (T, error)

func Max

func Max[T constraints.Ordered](nums ...T) (T, error)

func Min

func Min[T constraints.Ordered](nums ...T) (T, error)

func Sum

func Sum[T constraints.Ordered](nums ...T) (T, error)

Types

This section is empty.

Jump to

Keyboard shortcuts

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