Help us shape the future of Go! Take the 2026 Go Developer Survey

pi

package module
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: Sep 26, 2019 License: MIT Imports: 1 Imported by: 0

README

pi

Generate digits of PI with Taylor series


import "github.com/ferhatelmas/pi"

pi.Digits(10)
// 31415926535

or


> go get github.com/ferhatelmas/pi/cmd/pi
> pi -n 10

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Digits

func Digits(n int64) string

Digits computes the digits of PI as given amount excluding first two characters (3.)

Types

This section is empty.

Directories

Path Synopsis
cmd
pi command

Jump to

Keyboard shortcuts

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