Git Product home page Git Product logo

plotpi's Introduction

PlotPI


Begin by changing the variable "DigitCount = 10000" to the number of digits you want to plot.

Plot PI() to nth number of digits. The direction of the plot will be like a 10 digit clock with zero (0) straight up.

Plot direction will be defined by the dictionary xDict and yDict


xDict = {0: 0, 1: 1.2, 2: 2.4, 3: 2.4, 4: 1.2, 5: 0, 6: -1.2, 7: -2.4, 8: -2.4, 9: -1.2}
yDict = {0: 3, 1: 1.8, 2: 0.6, 3: -0.6, 4: -1.8, 5: -3, 6: -1.8, 7: -0.6, 8: 0.6, 9: 1.8}

So for 3.1415

Plot starts out at coordinate x=0, y=0
the three (3) will be defined as x=2.4 y=-0.6 from previous location
- Decimal is skipped -
the one (1) will be defined as x=1.2 y=-1.8 from previous location
the four (4) will be defined as x=1.2 y=-1.8 from previous location
the one (1) will be defined as x=1.2 y=-1.8 from previous location
the five (5) will be defined as x=0 y=-3 from previous location
Plot Direction
The Pi_Plot(pyQtGraph)Color.py just adds dynamic color to the plot. The total number of digits of PI() calculated is split into 10 data buckets and each bucket is assigned a different color. So, once plotted, the trace will have ten (10) different colors.

Million Digits of PI()

Date/Time Comment
2019-01-09 13:48:09.521180 Begin Calculating PI().
2019-01-09 13:52:41.791404 PI() is calculated.
00:04:32.270224 Total Calc Time
2019-01-09 13:52:41.803406 Begin Plotting PI()
2019-01-09 13:52:42.870512 PI() Plot Completed
00:00:01.067106 Total Plot Time

plotpi's People

Contributors

steveandpeggyb avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.