Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
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 的一些小工具封装 |
Click to show internal directories.
Click to hide internal directories.