Skip to content

fra99le/NonintegerCollatz

Repository files navigation

NonintegerCollatz

This code is part of a project exploring Collatz for non-integers.

Getting Started

Dependancies

This code relies on the GNU Multiple Precision Arithmetic Library for calculation and GNU Plot for making graphs. Packages for libgmp and gnuplot should exist for most Linux distributions and are available via macports on macOS.

In Debian Linux:

$ sudo apt-get install libgmp10-dev gnuplot

In macOS using macports:

$ sudo port install gmp gnuplot

Compiling and Running

$ git clone https://github.com/fra99le/NonintegerCollatz.git
$ cd NonintegerCollatz
$ c++ -I/opt/local/include -L/opt/local/lib collatz_w.cpp -lgmp -lgmpxx -o collatz_w 
$ ./collatz_w 33
$ ./plot_w.gplot
$ c++ -I/opt/local/include -L/opt/local/lib collatz_dbl.cpp -lgmp -lgmpxx -o collatz_dbl 
$ ./collatz_dbl
$ ./plot_dbl.gplot

About

Code for exploring Collatz for non-integers.

Topics

Resources

License

Stars

0 stars

Watchers

0 watching

Forks

Releases

No releases published

Packages

 
 
 

Contributors