Documentation ¶
Overview ¶
Package bigmath compensates for awkward big.Int API. Can cause an extra allocation or two.
Index ¶
- Variables
- func Accumulate(s []*big.Int) (r *big.Int)
- func Add(addend1, addend2 *big.Int) *big.Int
- func Div(dividend, divisor *big.Int) *big.Int
- func Equal(left, right *big.Int) bool
- func Exp(base, exponent, modulus *big.Int) *big.Int
- func I() *big.Int
- func Max(x, y *big.Int) *big.Int
- func Min(x, y *big.Int) *big.Int
- func Mod(dividend, divisor *big.Int) *big.Int
- func Mul(multiplicand, multiplier *big.Int) *big.Int
- func Sub(minuend, subtrahend *big.Int) *big.Int
Constants ¶
This section is empty.
Variables ¶
View Source
var ( Zero = big.NewInt(0) One = big.NewInt(1) Two = big.NewInt(2) Three = big.NewInt(3) Four = big.NewInt(4) Seven = big.NewInt(7) )
nolint
Functions ¶
func Accumulate ¶
Accumulate returns the sum of the given slice.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.