{"modulePath":"github.com/GoPlugin/pluginV2","version":"v0.5.0","isLatest":true,"isStandardLibrary":false,"goos":"all","goarch":"all","docs":"# package bigmath\n\nPackage bigmath compensates for awkward big.Int API. Can cause an extra allocation or two.\n\n## Variables\n\n```go\nvar (\n\tZero  = big.NewInt(0)\n\tOne   = big.NewInt(1)\n\tTwo   = big.NewInt(2)\n\tThree = big.NewInt(3)\n\tFour  = big.NewInt(4)\n\tSeven = big.NewInt(7)\n)\n```\nnolint\n\n## Functions\n\n```go\nfunc Accumulate(s []interface{}) (r *big.Int)\n```\nAccumulate returns the sum of the given slice after coercing all elements to a big.Int, or panics if it cannot.\n\n```go\nfunc Add(addend1, addend2 interface{}) *big.Int\n```\nAdd performs addition with the given values after coercing them to big.Int, or panics if it cannot.\n\n```go\nfunc Div(dividend, divisor interface{}) *big.Int\n```\nDiv performs division with the given values after coercing them to big.Int, or panics if it cannot.\n\n```go\nfunc Equal(left, right interface{}) bool\n```\nEqual compares the given values after coercing them to big.Int, or panics if it cannot.\n\n```go\nfunc Exp(base, exponent, modulus interface{}) *big.Int\n```\nExp performs modular eponentiation with the given values after coercing them to big.Int, or panics if it cannot.\n\n```go\nfunc I() *big.Int\n```\nI returns a new big.Int.\n\n```go\nfunc Max(x, y interface{}) *big.Int\n```\nMax returns the maximum of the two given values after coercing them to big.Int, or panics if it cannot.\n\n```go\nfunc Min(x, y interface{}) *big.Int\n```\nMin returns the min of the two given values after coercing them to big.Int, or panics if it cannot.\n\n```go\nfunc Mod(dividend, divisor interface{}) *big.Int\n```\nMod performs modulus with the given values after coercing them to big.Int, or panics if it cannot.\n\n```go\nfunc Mul(multiplicand, multiplier interface{}) *big.Int\n```\nMul performs multiplication with the given values after coercing them to big.Int, or panics if it cannot.\n\n```go\nfunc Sub(minuend, subtrahend interface{}) *big.Int\n```\nSub performs subtraction with the given values after coercing them to big.Int, or panics if it cannot.\n\n## Types\n\n```go\ntype ToIntable interface {\n\tToInt() *big.Int\n}\n```\nToIntable represents a type that is convertable to a big.Int, ex utils.Big\n\n","path":"github.com/GoPlugin/pluginV2/core/utils/big_math","name":"bigmath","synopsis":"Package bigmath compensates for awkward big.Int API.","isRedistributable":true}
