mathx

package
v0.0.0-...-ca9dcc0 Latest Latest
Warning

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

Go to latest
Published: Feb 18, 2018 License: BSD-3-Clause, BSD-3-Clause Imports: 1 Imported by: 0

Documentation

Overview

Package mathx implements special functions not provided by the standard math package.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Beta

func Beta(a, b float64) float64

Beta returns the value of the complete beta function B(a, b).

func BetaInc

func BetaInc(x, a, b float64) float64

BetaInc returns the value of the regularized incomplete beta function Iₓ(a, b).

This is not to be confused with the "incomplete beta function", which can be computed as BetaInc(x, a, b)*Beta(a, b).

If x < 0 or x > 1, returns NaN.

func Choose

func Choose(n, k int) float64

Choose returns the binomial coefficient of n and k.

func Lchoose

func Lchoose(n, k int) float64

Lchoose returns math.Log(Choose(n, k)).

func Sign

func Sign(x float64) float64

Sign returns the sign of x: -1 if x < 0, 0 if x == 0, 1 if x > 0. If x is NaN, it returns NaN.

Types

This section is empty.

Jump to

Keyboard shortcuts

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