©
Collatz conjecture on the Web
Runs the conjecture computation.
2024.Jul.03 19:19:00
Start: n (integer: 3 to 2^64 ≅ 1.84e+19) Initial number.
D, M, A Divisor, multiplier, addend.
Max y Maximum value for y-axis (0, auto).
Max steps   Maximum steps allowed.
Show values Show graph coordinates.

Runs the computation in the Collatz conjecture.

Draws a graph of the successive values, from the initial value given, n (n ≥ 3).


Computation structure — A PHP file (this page: 'Pg-Collatz.php') calls (via 'action=') an intermediate PHP file ('Collatz.php'), which (through $_GET) sends the problem data as command line arguments to a Python script. This last does the computing, and executes graphing via 'gnuplot' (system call), for the final (temporary) webpage. Keywords: PHP, command line arguments, Python script, gnuplot.

References: Plate: Collatz

• (Wikipedia) PHP (from Personal Home Page) • Python (programming language). Python as glue • gnuplot

• (Wikipedia) Collatz conjecture • Collatz, Lothar (1910–1990).

• ICMASC'24, International Conference on Mathematical Analysis and Applications in Science and Engineering, Porto (Portugal), Thu–Sat 20–22 June 2024.

• 1809-03-24: Liouville, Joseph (†1882-09-08, 73 yrs.).

 
 
Valid HTML 5! IST http://web.ist.utl.pt/~mcasquilho/compute/ICMASC_24/getCollatz/Pg-Collatz.php
Created: 2023-03-25 — Last modified: 2024-06-02