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. |