bettersine

package
v2.2.0 Latest Latest
Warning

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

Go to latest
Published: Jul 15, 2021 License: Apache-2.0 Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Approximate

func Approximate(K, degree int, dev float64, scnum int) []complex128

Approximate computes a polynomial approximation of degree "degree" in Chevyshev basis of the function cos(2*pi*x/2^"scnum") in the range -"K" to "K" The nodes of the Chevyshev approximation are are located from -dev to +dev at each integer value between -K and -K

func Cos

func Cos(x *big.Float) (cosx *big.Float)

Cos is an iterative arbitrary precision computation of Cos(x) Iterative process with an error of ~10^{−0.60206*k} after k iterations. ref : Johansson, B. Tomas, An elementary algorithm to evaluate trigonometric functions to high precision, 2018

func NewFloat

func NewFloat(x float64) (y *big.Float)

NewFloat creates a new big.Float element with 1000 bits of precision

func Sin

func Sin(x *big.Float) (sinx *big.Float)

Sin is an iterative arbitrary precision computation of Sin(x)

Types

This section is empty.

Jump to

Keyboard shortcuts

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