calc

package
v6.0.3 Latest Latest
Warning

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

Go to latest
Published: Nov 20, 2024 License: MIT Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type BigFloat

type BigFloat struct {
	coll.Stack[*big.Float]
	// contains filtered or unexported fields
}

func NewBigFloat

func NewBigFloat() *BigFloat

func NewBigFloatWithPrec

func NewBigFloatWithPrec(prec uint) *BigFloat

func (*BigFloat) Add

func (c *BigFloat) Add()

func (*BigFloat) Dup

func (c *BigFloat) Dup()

func (*BigFloat) PushInt

func (c *BigFloat) PushInt(i int)

type BigInt

type BigInt struct {
	coll.Stack[*big.Int]
	// contains filtered or unexported fields
}

func NewBigInt

func NewBigInt() *BigInt

func (*BigInt) Abs

func (c *BigInt) Abs()

func (*BigInt) Add

func (c *BigInt) Add()

func (*BigInt) And

func (c *BigInt) And()

func (*BigInt) AndNot

func (c *BigInt) AndNot()

func (*BigInt) Binomial

func (c *BigInt) Binomial(n, k int64)

func (*BigInt) Cmp

func (c *BigInt) Cmp() int

func (*BigInt) CmpAbs

func (c *BigInt) CmpAbs() int

func (*BigInt) Div

func (c *BigInt) Div()

func (*BigInt) DivMod

func (c *BigInt) DivMod()

func (*BigInt) Dup

func (c *BigInt) Dup()

func (*BigInt) Exp

func (c *BigInt) Exp()

func (*BigInt) GCD

func (c *BigInt) GCD()

func (*BigInt) GCD2

func (c *BigInt) GCD2()

func (*BigInt) Lsh

func (c *BigInt) Lsh(n uint)

func (*BigInt) Mod

func (c *BigInt) Mod()

func (*BigInt) ModInverse

func (c *BigInt) ModInverse()

func (*BigInt) ModSqrt

func (c *BigInt) ModSqrt()

func (*BigInt) Mul

func (c *BigInt) Mul()

func (*BigInt) MulRange

func (c *BigInt) MulRange(a, b int64)

func (*BigInt) Neg

func (c *BigInt) Neg()

func (*BigInt) Not

func (c *BigInt) Not()

func (*BigInt) Or

func (c *BigInt) Or()

func (*BigInt) Pow

func (c *BigInt) Pow()

func (*BigInt) PushInt

func (c *BigInt) PushInt(vals ...int)

func (*BigInt) PushInt64

func (c *BigInt) PushInt64(vals ...int64)

func (*BigInt) PushUint

func (c *BigInt) PushUint(vals ...uint)

func (*BigInt) Quo

func (c *BigInt) Quo()

func (*BigInt) QuoRem

func (c *BigInt) QuoRem()

func (*BigInt) Rem

func (c *BigInt) Rem()

func (*BigInt) Rsh

func (c *BigInt) Rsh(n uint)

func (*BigInt) SetBit

func (c *BigInt) SetBit(i int, b uint)

func (*BigInt) Sqrt

func (c *BigInt) Sqrt()

func (*BigInt) Sub

func (c *BigInt) Sub()

func (*BigInt) Xor

func (c *BigInt) Xor()

type Decimal

type Decimal struct {
	coll.Stack[*apd.Decimal]

	Ctx   *apd.Context
	Flags apd.Condition
	Err   error
	// contains filtered or unexported fields
}

func NewDecimal

func NewDecimal() *Decimal

func (*Decimal) Abs

func (c *Decimal) Abs() *Decimal

func (*Decimal) Ack

func (c *Decimal) Ack() *Decimal

func (*Decimal) Add

func (c *Decimal) Add() *Decimal

func (*Decimal) Cbrt

func (c *Decimal) Cbrt() *Decimal

func (*Decimal) Ceil

func (c *Decimal) Ceil() *Decimal

func (*Decimal) Cmp

func (c *Decimal) Cmp() int

func (*Decimal) CmpTotal

func (c *Decimal) CmpTotal() int

func (*Decimal) Dup

func (c *Decimal) Dup() *Decimal

func (*Decimal) Exp

func (c *Decimal) Exp() *Decimal

func (*Decimal) Floor

func (c *Decimal) Floor() *Decimal

func (*Decimal) Ln

func (c *Decimal) Ln() *Decimal

func (*Decimal) Load

func (c *Decimal) Load(name string) *Decimal

func (*Decimal) Log10

func (c *Decimal) Log10() *Decimal

func (*Decimal) Mul

func (c *Decimal) Mul() *Decimal

func (*Decimal) Neg

func (c *Decimal) Neg() *Decimal

func (*Decimal) PopFloat64

func (c *Decimal) PopFloat64() (float64, error)

func (*Decimal) PopInt64

func (c *Decimal) PopInt64() (int64, error)

func (*Decimal) PopString

func (c *Decimal) PopString() string

func (*Decimal) Pow

func (c *Decimal) Pow() *Decimal

func (*Decimal) Push

func (c *Decimal) Push(ds ...*apd.Decimal) *Decimal

func (*Decimal) PushFloat64

func (c *Decimal) PushFloat64(fs ...float64) *Decimal

func (*Decimal) PushInt

func (c *Decimal) PushInt(vals ...int) *Decimal

func (*Decimal) PushInt64

func (c *Decimal) PushInt64(vals ...int64) *Decimal

func (*Decimal) PushString

func (c *Decimal) PushString(ss ...string) *Decimal

func (*Decimal) Quantize

func (c *Decimal) Quantize(exp int32) *Decimal

func (*Decimal) Quo

func (c *Decimal) Quo() *Decimal

func (*Decimal) QuoInteger

func (c *Decimal) QuoInteger() *Decimal

func (*Decimal) Reduce

func (c *Decimal) Reduce() *Decimal

func (*Decimal) Rem

func (c *Decimal) Rem() *Decimal

func (*Decimal) Round

func (c *Decimal) Round() *Decimal

func (*Decimal) RoundToIntegeralExact

func (c *Decimal) RoundToIntegeralExact() *Decimal

func (*Decimal) RoundToIntegeralValue

func (c *Decimal) RoundToIntegeralValue() *Decimal

func (*Decimal) Save

func (c *Decimal) Save(name string) *Decimal

func (*Decimal) Sqrt

func (c *Decimal) Sqrt() *Decimal

func (*Decimal) Sub

func (c *Decimal) Sub() *Decimal

func (*Decimal) Trunc

func (c *Decimal) Trunc() *Decimal

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL
JackTT - Gopher 🇻🇳