Calculates the mean value
of the radius of an ellipse with given semi-axes
a and b.
Advantage is taken from: PHP,
for the web page; and Python for the numerical segment;
and 'gnuplot', for plotting.
Draws the ellipse and a plot of the mean radius vs.
b / a, in [0.1, 1].
Computation structure — A PHP file
(this page: 'P-ellipse.php') calls (via
'action=...') an intermediate PHP file ('Ellipse.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.
Files involved:
P-ellipse.php (this one),
Ellipse.php,
ellipse.py.
Keywords: PHP, command line arguments,
Python script, gnuplot. |