math

package
v0.0.0-...-304a07d Latest Latest
Warning

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

Go to latest
Published: Dec 16, 2022 License: MIT Imports: 1 Imported by: 0

Documentation

Index

Constants

View Source
const E = 2.71828182845904523536028747135266249775724709369995957496696763
View Source
const PI = 3.14159265358979323846264338327950288419716939937510582097494459

Variables

This section is empty.

Functions

func Abs

func Abs[T Number](a T) T

func Ceil

func Ceil[T constraints.Float](a T) T

func Floor

func Floor[T constraints.Float](a T) T

func Max

func Max[T Number](a, b T) T

func Min

func Min[T Number](a, b T) T

func Pow

func Pow[T Number](x T, n int) T

func Round

func Round[T constraints.Float](a T) T

Types

type Number

type Number interface {
	constraints.Float | constraints.Integer
}

Jump to

Keyboard shortcuts

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