Versions in this module Expand all Collapse all v1 v1.3.3 Oct 2, 2014 v1.3.1 Aug 21, 2014 Changes in this version + const MaxBase + type Int struct + func NewInt(x int64) *Int + func (x *Int) Bit(i int) uint + func (x *Int) BitLen() int + func (x *Int) Bits() []Word + func (x *Int) Bytes() []byte + func (x *Int) Cmp(y *Int) (r int) + func (x *Int) Format(s fmt.State, ch rune) + func (x *Int) GobEncode() ([]byte, error) + func (x *Int) Int64() int64 + func (x *Int) ProbablyPrime(n int) bool + func (x *Int) Sign() int + func (x *Int) String() string + func (x *Int) Uint64() uint64 + func (z *Int) Abs(x *Int) *Int + func (z *Int) Add(x, y *Int) *Int + func (z *Int) And(x, y *Int) *Int + func (z *Int) AndNot(x, y *Int) *Int + func (z *Int) Binomial(n, k int64) *Int + func (z *Int) Div(x, y *Int) *Int + func (z *Int) DivMod(x, y, m *Int) (*Int, *Int) + func (z *Int) Exp(x, y, m *Int) *Int + func (z *Int) GCD(x, y, a, b *Int) *Int + func (z *Int) GobDecode(buf []byte) error + func (z *Int) Lsh(x *Int, n uint) *Int + func (z *Int) MarshalJSON() ([]byte, error) + func (z *Int) MarshalText() (text []byte, err error) + func (z *Int) Mod(x, y *Int) *Int + func (z *Int) ModInverse(g, p *Int) *Int + func (z *Int) Mul(x, y *Int) *Int + func (z *Int) MulRange(a, b int64) *Int + func (z *Int) Neg(x *Int) *Int + func (z *Int) Not(x *Int) *Int + func (z *Int) Or(x, y *Int) *Int + func (z *Int) Quo(x, y *Int) *Int + func (z *Int) QuoRem(x, y, r *Int) (*Int, *Int) + func (z *Int) Rand(rnd *rand.Rand, n *Int) *Int + func (z *Int) Rem(x, y *Int) *Int + func (z *Int) Rsh(x *Int, n uint) *Int + func (z *Int) Scan(s fmt.ScanState, ch rune) error + func (z *Int) Set(x *Int) *Int + func (z *Int) SetBit(x *Int, i int, b uint) *Int + func (z *Int) SetBits(abs []Word) *Int + func (z *Int) SetBytes(buf []byte) *Int + func (z *Int) SetInt64(x int64) *Int + func (z *Int) SetString(s string, base int) (*Int, bool) + func (z *Int) SetUint64(x uint64) *Int + func (z *Int) Sub(x, y *Int) *Int + func (z *Int) UnmarshalJSON(text []byte) error + func (z *Int) UnmarshalText(text []byte) error + func (z *Int) Xor(x, y *Int) *Int + type Rat struct + func NewRat(a, b int64) *Rat + func (r *Rat) MarshalText() (text []byte, err error) + func (r *Rat) UnmarshalText(text []byte) error + func (x *Rat) Cmp(y *Rat) int + func (x *Rat) Denom() *Int + func (x *Rat) Float64() (f float64, exact bool) + func (x *Rat) FloatString(prec int) string + func (x *Rat) GobEncode() ([]byte, error) + func (x *Rat) IsInt() bool + func (x *Rat) Num() *Int + func (x *Rat) RatString() string + func (x *Rat) Sign() int + func (x *Rat) String() string + func (z *Rat) Abs(x *Rat) *Rat + func (z *Rat) Add(x, y *Rat) *Rat + func (z *Rat) GobDecode(buf []byte) error + func (z *Rat) Inv(x *Rat) *Rat + func (z *Rat) Mul(x, y *Rat) *Rat + func (z *Rat) Neg(x *Rat) *Rat + func (z *Rat) Quo(x, y *Rat) *Rat + func (z *Rat) Scan(s fmt.ScanState, ch rune) error + func (z *Rat) Set(x *Rat) *Rat + func (z *Rat) SetFloat64(f float64) *Rat + func (z *Rat) SetFrac(a, b *Int) *Rat + func (z *Rat) SetFrac64(a, b int64) *Rat + func (z *Rat) SetInt(x *Int) *Rat + func (z *Rat) SetInt64(x int64) *Rat + func (z *Rat) SetString(s string) (*Rat, bool) + func (z *Rat) Sub(x, y *Rat) *Rat + type Word uintptr