©
Random inscribed polygon
Simulates a random polygon inscribed in a circle.
2024.Jul.03 19:28:51
n  (n ≥ 3) Number of vertices.
Angle sorting   Angle sorting: for simple polygon.
Seed   Monte Carlo seed (0: unrepeatable).
Show values Show graph coordinates.

Simulates a polygon of n vertices, inscribed in a (unit) circle.

Files involved: P-inscrPolygon.php (this one), InscrPolygon.php, inscrPolygon.py.

Draws the simulated polygon.


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

Keywords: PHP, command line arguments, Python script, gnuplot.

References: Plate: InscrPolygon

• (Wikipedia) PHP (from Personal Home Page) • Python (programming language)

• Python as glue • Using Python as glue • F2PY Users Guide and Reference Manual

• 1819-09-18: Foucault, Jean Bernard Léon (†1868-02-11, 48 yrs.).

 
 
Valid HTML 5! IST http://web.ist.utl.pt/~mcasquilho/compute/explore/inscrPolygon/P-inscrPolygon.php
Created: 2023-09-18 — Last modified: 2024-06-18