Skip to content

bmikolaj/stringinpi

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

11 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Find String in π

v1.02

Description

String in Pi searches for the first occurance of any integer string in Pi.

Dependencies

String in Pi was designed for Linux and uses the following programs;

  • Python 2.7+
  • Python pip (for installation; installed via setup.sh)
  • Python module: sympy (installed via setup.sh)

Install

  • Clone git archive via the following command;

    git clone https://github.com/bmikolaj/stringinpi.git stringinpi

  • Change directories via cd stringinpi

  • Run the following command to install;

    sudo ./setup.sh install

This will install the two dependancies: pip and sympy.

  • If desired, copy the program to your bin directory via sudo cp stringinpi.py /usr/local/bin/stringinpi.py

Usage

Run via the following command;

stringinpi.py [-h] <integer>

Can be Interrupted with Ctrl+C. The program will then print the following;

user@computer:$ ./stringinpi.py 123456

>>Searching for 123456 in π...

>>Number of Characters Checked: <100000

>>Program Interrupted

Required parameters

<integer> is required.

Optional parameters

-h for help

--version will print the version of stringinpi.py and exit.

Example

user@computer:$ ./stringinpi.py 123

>>Searching for 123 in π...

>>Starting Position of String: 1925

>>047_123_713

Uninstall

  • Run the following command to uninstall;

    sudo ./setup.sh uninstall

Changelog

  • v1.02 (15 March 2015)

    Fixed string starting with 0 bug

  • v1.01 (04 February 2015)

    Added Program Interrupt in README.md

  • v1.0 (17 January 2015)

    Initial Release

Author

Brian Mikolajczyk, [email protected]

Legal

Copyright (c) 2015, Brian Mikolajczyk, [email protected]

Licence

Please see file LICENCE.

Copying

Please see file COPYING.

About

Find a string in π

Resources

License

Unknown, Unknown licenses found

Licenses found

Unknown
LICENSE
Unknown
COPYING

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published