24

Circle visualization of a number's digits, like with π

 4 years ago
source link: https://github.com/hugolgst/digart
Go to the source link to view the article. You can view the picture content, updated content and better typesetting reading experience. If the link is broken, please click the button below to view the snapshot at that time.

AZB3IfN.jpg!web

circle visualization of a number's digits in Go

Introduction

In the image below, each dot represents a decimal which is in a segment that represents the previous decimal, its position is its position in π.

Getting started

Download the latest release :

And then run the tool

$ ./digart

To change number you can just write the file path

resources/e.txt
resources/phi.txt
resources/pi.txt

And the number of digits (not lower than 1500)

$ ./digart resources/e.txt 3000

License

MIT


About Joyk


Aggregate valuable and interesting links.
Joyk means Joy of geeK