ffmath

package
v0.0.8 Latest Latest
Warning

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

Go to latest
Published: Oct 28, 2022 License: Apache-2.0 Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Add

func Add(x *big.Int, y *big.Int) *big.Int

func AddMod

func AddMod(x, y *big.Int, ORDER *big.Int) *big.Int

func Div

func Div(a, b *big.Int) *big.Int

func DivMod

func DivMod(a, b, modulo *big.Int) *big.Int

func Equal

func Equal(a, b *big.Int) bool

func FloatAdd

func FloatAdd(a, b *big.Float) *big.Float

func FloatDiv

func FloatDiv(a, b *big.Float) *big.Float

func FloatDivByInt

func FloatDivByInt(a, b *big.Int) *big.Float

func FloatMul

func FloatMul(a, b *big.Float) *big.Float

func FloatSqrt

func FloatSqrt(a *big.Float) *big.Float

func FloatSub

func FloatSub(a, b *big.Float) *big.Float

func FloatToInt

func FloatToInt(a *big.Float) *big.Int

func IntToFloat

func IntToFloat(a *big.Int) *big.Float

func Mod

func Mod(base *big.Int, modulo *big.Int) *big.Int

func ModInverse

func ModInverse(base *big.Int, modulo *big.Int) *big.Int

func Multiply

func Multiply(factor1 *big.Int, factor2 *big.Int) *big.Int

func MultiplyMod

func MultiplyMod(factor1 *big.Int, factor2 *big.Int, ORDER *big.Int) *big.Int

func Neg

func Neg(a *big.Int) *big.Int

func RandomValue

func RandomValue(Order *big.Int) (r *big.Int, err error)

func Sub

func Sub(x *big.Int, y *big.Int) *big.Int

func SubMod

func SubMod(x, y *big.Int, ORDER *big.Int) *big.Int

func Xor

func Xor(a, b *big.Int) *big.Int

Types

This section is empty.

Jump to

Keyboard shortcuts

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