Popularity
2.1
Stable
Activity
0.0
Declining
20
4
4

Programming language: Go

# PiHex alternatives and similar packages

Based on the "Science and Data Analysis" category.
Alternatively, view PiHex alternatives based on common mentions on social networks and blogs.

• ### gonum

Gonum is a set of numeric libraries for the Go programming language. It contains libraries for matrices, statistics, optimization, and more
• ### Stats

A well tested and comprehensive Golang statistics library package with no dependencies.
• ### Updating dependencies is time-consuming.

Solutions like Dependabot or Renovate update but don't merge dependencies. You need to do it manually while it could be fully automated! Add a Merge Queue to your workflow and stop caring about PR management & merging. Try Mergify for free.
• ### gonum/plot

A repository for plotting and visualizing data
• ### gosl

Linear algebra, eigenvalues, FFT, Bessel, elliptic, orthogonal polys, geometry, NURBS, numerical quadrature, 3D transfinite interpolation, random numbers, Mersenne twister, probability distributions, optimisation, differential equations.
• ### streamtools

tools for working with streams of data
• ### dataframe-go

DataFrames for Go: For statistics, machine-learning, and data manipulation/exploration
• ### chart

Provide basic charts in go
• ### go-dsp

Digital Signal Processing for Go
• ### goraph

Package goraph implements graph data structure and algorithms.
• ### graph

Graph algorithms and data structures
• ### gonum/mat64

The general purpose package for matrix computation. Package mat64 provides basic linear algebra operations for float64 matrices.
• ### ewma

Exponentially Weighted Moving Average algorithms for Go.
• ### go.matrix

linear algebra for go
• ### calendarheatmap

📅 Calendar heatmap inspired by GitHub contribution activity
• ### gohistogram

Streaming approximate histograms in Go
• ### TextRank

:wink: :cyclone: :strawberry: TextRank implementation in Golang with extendable features (summarization, phrase extraction) and multithreading (goroutine).
• ### blas

Go implementation of BLAS (Basic Linear Algebra Subprograms)
• ### sparse

Sparse matrix formats for linear algebra supporting scientific and machine learning applications
• ### pagerank

Weighted PageRank implementation in Go
• ### go-estimate

State estimation and filtering algorithms in Go
• ### geom

2d geometry for golang
• ### evaler

Implements a simple floating point arithmetic expression evaluator in Go (golang).
• ### vectormath

Vectormath for Go
• ### jsonl-graph

🏝 JSONL Graph Tools
• ### gostat

Collection of statistical routines in golang
• ### permutation

Simple permutation package for golang
• ### triangolatte

2D triangulation library. Allows translating lines and polygons (both based on points) to the language of GPUs.
• ### gograph

A golang generic graph library that provides mathematical graph-theory and algorithms.
• ### piecewiselinear

tiny linear interpolation library for go (factored out from https://github.com/sgreben/yeetgif)
• ### goent

GO Implementation of Entropy Measures
• ### ode

An ordinary differential equation solving library in golang.
• ### GoStats

GoStats is a go library for math statistics mostly used in ML domains, it covers most of the statistical measures functions.
• ### godesim

ODE system solver made simple. For IVPs (initial value problems).
• ### rootfinding

root-finding library
• ### assocentity

Package assocentity returns the mean distance from tokens to an entity and its synonyms
• ### gofrac

A fractions library for go (http://golang.org)

Package to do Bradley-Terry Model pairwise compairsons

• ### gobbs

A Blum-Blum-Shub-Generator written in Go

• ### mudlark-go

A collection of packages providing (hopefully) useful code for use in software using Google's Go programming language.

Do you think we are missing an alternative of PiHex or a related project?

## PiHex

PiHex Library generates a hexadecimal number sequence in the number Pi in the range from 0 to 1.0e10000000. To calculate using "Bailey-Borwein-Plouffe" algorithm, instructions that was published by David H. Bailey September 17, 2006.

## Usage

An example of using the PiHex Library:

``````package main

import (
"fmt"
"github.com/claygod/PiHex"
)

func main() {
pi := PiHex.New()
fmt.Print("The first 9 digits of Pi (hexadecimal): ", pi.Get(0, 9))
}
``````

## Settings

In the configuration file, you can change the constant STEP. This constant determines the amount generated in one step numbers. The reduction leads to a constant increase in the operating time of the program.

Attention! This constant can not be more than 9! Limitation due to the 64-bit library architecture.

The configuration file config.go

## Perfomance

To optimize the run-time program, highly loaded sections of the library are performed in parallel (4 goroutines).

## API

Methods:

• New - create a new PiHex
• Get - receiving a sequence of hexadecimal digits starting at the specified position and in the right quantity.

Example:

``````pi := PiHex.New()
x :=  pi.Get(1000, 5)
``````

## Algorithm

The Bailey–Borwein–Plouffe formula (BBP formula) is a spigot algorithm for computing the nth binary digit of Pi using base 16 math. The formula can directly calculate the value of any given digit of π without calculating the preceding digits. The BBP is a summation-style formula that was discovered in 1995 by Simon Plouffe and was named after the authors of the paper in which the formula was published, David H. Bailey, Peter Borwein, and Simon Plouffe.

## Implementation

Plays Library is based on the publication "The BBP Algorithm for Pi" of David H. Bailey on September 17, 2006: http://www.davidhbailey.com/dhbpapers/bbp-alg.pdf
{"ft_lang_label":"__label__en","ft_lang_prob":0.7156205,"math_prob":0.59775877,"size":6494,"snap":"2023-40-2023-50","text_gpt3_token_len":1760,"char_repetition_ratio":0.14899845,"word_repetition_ratio":0.0,"special_character_ratio":0.23082846,"punctuation_ratio":0.1611842,"nsfw_num_words":0,"has_unicode_error":false,"math_prob_llama3":0.96666336,"pos_list":[0],"im_url_duplicate_count":[null],"WARC_HEADER":"{\"WARC-Type\":\"response\",\"WARC-Date\":\"2023-09-30T03:28:01Z\",\"WARC-Record-ID\":\"<urn:uuid:f7ac2a29-1eac-4538-b0a9-b0098823ae3a>\",\"Content-Length\":\"80530\",\"Content-Type\":\"application/http; msgtype=response\",\"WARC-Warcinfo-ID\":\"<urn:uuid:1103f781-f994-4fe6-a5ce-b4babd3465b9>\",\"WARC-Concurrent-To\":\"<urn:uuid:3e28e0cc-7f9b-494a-a089-ba685485c640>\",\"WARC-IP-Address\":\"172.66.41.34\",\"WARC-Target-URI\":\"https://go.libhunt.com/pihex-alternatives\",\"WARC-Payload-Digest\":\"sha1:AW465WG7UDRB3QENRJ6AAH4B2ZJOUSHT\",\"WARC-Block-Digest\":\"sha1:FE3T47YFWJS7QRZIYN22TRRE655P7OJ3\",\"WARC-Identified-Payload-Type\":\"text/html\",\"warc_filename\":\"/cc_download/warc_2023/CC-MAIN-2023-40/CC-MAIN-2023-40_segments_1695233510575.93_warc_CC-MAIN-20230930014147-20230930044147-00671.warc.gz\"}"}