bigfloat

package
v0.2.1 Latest Latest
Warning

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

Go to latest
Published: Dec 27, 2022 License: MIT, MIT Imports: 2 Imported by: 0

Documentation

Overview

Package bigfloat provides the implementation of a few additional operations for the standard library big.Float type.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Exp

func Exp(z *big.Float) *big.Float

Exp returns a big.Float representation of exp(z). Precision is the same as the one of the argument. The function returns +Inf when z = +Inf, and 0 when z = -Inf.

func Log

func Log(z *big.Float) *big.Float

Log returns a big.Float representation of the natural logarithm of z. Precision is the same as the one of the argument. The function panics if z is negative, returns -Inf when z = 0, and +Inf when z = +Inf

func Pow

func Pow(z *big.Float, w *big.Float) *big.Float

Pow returns a big.Float representation of z**w. Precision is the same as the one of the first argument. The function panics when z is negative.

func Sqrt

func Sqrt(z *big.Float) *big.Float

Sqrt returns a big.Float representation of the square root of z. Precision is the same as the one of the argument. The function panics if z is negative, returns ±0 when z = ±0, and +Inf when z = +Inf.

Types

This section is empty.

Jump to

Keyboard shortcuts

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