math

package module
v0.0.0-...-8b45bad Latest Latest
Warning

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

Go to latest
Published: Jan 13, 2026 License: MIT Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Normalize

func Normalize[T constraints.Float](in []T, min, max T) []T

Normalize 归一化

func SqrtInt

func SqrtInt[T constraints.Signed](x T) complex128

SqrtInt sqrt(x) and returns complex number. If x is negative, it will return complex number with imaginary part.

func SqrtUint

func SqrtUint[T constraints.Unsigned](x T) T

SqrtUint sqrt(x) but returns integer part only. If x is negative, it will return 0.

Types

This section is empty.

Directories

Path Synopsis
Package rand 提供官方 math/rand 的一些小工具封装
Package rand 提供官方 math/rand 的一些小工具封装

Jump to

Keyboard shortcuts

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