jkmath

package
v0.0.0-...-a9e9222 Latest Latest
Warning

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

Go to latest
Published: Jan 6, 2022 License: GPL-3.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Fact

func Fact(i int) int64

Types

type Hanoi

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

func NewHanoi

func NewHanoi(n int) *Hanoi

func (*Hanoi) Do

func (h *Hanoi) Do()

func (*Hanoi) Print

func (h *Hanoi) Print()

type Matrix

type Matrix struct {
	// The first is rows, then cols.
	Items [][]int
}

func NewMatrix

func NewMatrix(cols, rows int, items []int) *Matrix

* items first colume then row, from left to right, from top to bottom.

func (*Matrix) Display

func (m *Matrix) Display()

func (*Matrix) Item

func (m *Matrix) Item(row, col int) (int, error)

* row and col is the index from 1 to ...

func (*Matrix) Size

func (m *Matrix) Size() []int

The size of matrix with []int , cols and rows

type Modular

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

func New

func New() *Modular

func (*Modular) BaseExpansion

func (m *Modular) BaseExpansion(n, b int) error

func (*Modular) Print

func (m *Modular) Print()

Jump to

Keyboard shortcuts

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