gdmath

package
v0.0.0-...-7424bbb Latest Latest
Warning

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

Go to latest
Published: Oct 30, 2020 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	// Disparity Disparity
	Disparity = 8
)

Functions

func Log10

func Log10(v *BigInt) float64

Log10 Log10

Types

type BigInt

type BigInt struct {
	// contains filtered or unexported fields
}

BigInt BigInt

func NewBigInt

func NewBigInt(num float64, mul int) *BigInt

NewBigInt NewBigInt

func NewFromBigInt

func NewFromBigInt(v *BigInt) *BigInt

NewFromBigInt NewFromBigInt

func NewFromFloat

func NewFromFloat(v float64) *BigInt

NewFromFloat NewFromFloat

func NewFromString

func NewFromString(v string) *BigInt

NewFromString NewFromString

func (*BigInt) Add

func (its *BigInt) Add(v *BigInt) *BigInt

Add Add

func (*BigInt) AddFloat

func (its *BigInt) AddFloat(v float64) *BigInt

AddFloat AddFloat

func (*BigInt) Div

func (its *BigInt) Div(v *BigInt) *BigInt

Div Div

func (*BigInt) DivFloat

func (its *BigInt) DivFloat(v float64) *BigInt

DivFloat DivFloat

func (*BigInt) FromBigInt

func (its *BigInt) FromBigInt(v *BigInt) *BigInt

FromBigInt FromBigInt

func (*BigInt) FromFloat

func (its *BigInt) FromFloat(v float64) *BigInt

FromFloat FromFloat

func (*BigInt) FromString

func (its *BigInt) FromString(v string) *BigInt

FromString FromString

func (*BigInt) IsEqual

func (its *BigInt) IsEqual(v *BigInt) bool

IsEqual IsEqual

func (*BigInt) IsEqualFloat

func (its *BigInt) IsEqualFloat(v float64) bool

IsEqualFloat IsEqualFloat

func (*BigInt) IsLaE

func (its *BigInt) IsLaE(v *BigInt) bool

IsLaE IsLaE

func (*BigInt) IsLaEFloat

func (its *BigInt) IsLaEFloat(v float64) bool

IsLaEFloat IsLaEFloat

func (*BigInt) IsLess

func (its *BigInt) IsLess(v *BigInt) bool

IsLess IsLess

func (*BigInt) IsLessFloat

func (its *BigInt) IsLessFloat(v float64) bool

IsLessFloat IsLessFloat

func (*BigInt) IsMaE

func (its *BigInt) IsMaE(v *BigInt) bool

IsMaE IsMaE

func (*BigInt) IsMaEFloat

func (its *BigInt) IsMaEFloat(v float64) bool

IsMaEFloat IsMaEFloat

func (*BigInt) IsMore

func (its *BigInt) IsMore(v *BigInt) bool

IsMore IsMore

func (*BigInt) IsMoreFloat

func (its *BigInt) IsMoreFloat(v float64) bool

IsMoreFloat IsMoreFloat

func (*BigInt) IsZero

func (its *BigInt) IsZero() bool

IsZero IsZero

func (*BigInt) Mul

func (its *BigInt) Mul(v *BigInt) *BigInt

Mul Mul

func (*BigInt) MulFloat

func (its *BigInt) MulFloat(v float64) *BigInt

MulFloat MulFloat

func (*BigInt) Pow

func (its *BigInt) Pow(y float64) (result *BigInt)

Pow Pow

func (*BigInt) Sqrt

func (its *BigInt) Sqrt(x uint) (result *BigInt)

Sqrt Sqrt

func (*BigInt) String

func (its *BigInt) String() string

String String

func (*BigInt) Sub

func (its *BigInt) Sub(v *BigInt) *BigInt

Sub Sub

type SortInt

type SortInt []*BigInt

SortInt SortInt

func (*SortInt) Len

func (its *SortInt) Len() int

Len Len

func (*SortInt) Less

func (its *SortInt) Less(i, j int) bool

Less Less

func (*SortInt) Swap

func (its *SortInt) Swap(i, j int)

Swap Swap

Jump to

Keyboard shortcuts

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