mathfp

package
v0.0.0-...-0fdbc55 Latest Latest
Warning

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

Go to latest
Published: Nov 18, 2023 License: MIT Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var CopySign func(sign float64) func(f float64) float64 = fp.CurryR2(math.Copysign)

CopySign is a curried version of math.CopySign.

View Source
var IsInf func(sign int) func(f float64) bool = fp.CurryR2(math.IsInf)

IsInf is a curried version of math.IsInf.

Functions

func Max

func Max[T constraints.Float](x T) func(y T) T

Max is a curried version of math.Max, however also accepts float32.

func Min

func Min[T constraints.Float](x T) func(y T) T

Min is a curried version of math.Min, however also accepts float32.

func Mod

func Mod[T constraints.Float](x T) func(y T) T

Mod is a curried version of math.Mod, however also accepts float32.

func NextAfter

func NextAfter[T constraints.Float](x T) func(y T) T

NextAfter is a curried version of math.NextAfter, however also accepts float32.

func Pow

func Pow[T constraints.Float](y T) func(x T) T

Pow is a curried version of math.Pow, however also accepts float32.

Types

This section is empty.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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