figurate

package
v0.6.0 Latest Latest
Warning

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

Go to latest
Published: Oct 8, 2025 License: MIT Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Hexagonal added in v0.6.0

func Hexagonal(n int) int

Hexagonal returns the nth hexagonal number

func IsHexagonal

func IsHexagonal(n int) bool

IsHexagonal returns true if n is a hexagonal number

func IsPentagonal

func IsPentagonal(n int) bool

IsPentagonal returns true if n is a pentagonal number

func IsTriangular

func IsTriangular(n int) bool

IsTriangular returns true if n is a triangular number

func Pentagonal added in v0.6.0

func Pentagonal(n int) int

Pentagonal returns the nth pentagonal number

func Triangular added in v0.6.0

func Triangular(n int) int

Triangular returns the nth triangular number

Types

This section is empty.

Jump to

Keyboard shortcuts

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