Package bigfloat provides arbitrary-precision natural logarithm and
exponentiation for the standard library's big.Float
type.
The package requires Go 1.10 or newer.
Example
package main
import (
"fmt"
"math/big"
"github.com/ALTree/bigfloat"
)
func main() {
const prec = 1000
two := big.NewFloat(2).SetPrec(prec)
sqrtTwo := new(big.Float).SetPrec(prec).Sqrt(two)
gsc := bigfloat.Pow(two, sqrtTwo)
fmt.Printf("gsc = %.60f\n", gsc)
}
outputs:
gsc = 2.665144142690225188650297249873139848274211313714659492835980
Documentation
See https://godoc.org/github.com/ALTree/bigfloat