Calculates the area between
the curves of two given polynomials (m, n: degrees,
any ≥ 0)
Accessorily, computes (a) the roots
of the polynomials, and (b) the arc lengths of
the polynomials.
Advantage is taken from: PHP,
for the web page; and Python for the numerical segment;
and 'gnuplot', for plotting.
Draws plots of the polynomials and of the
(progressive) area.
Computation structure — A PHP file
(this page: 'P-geoAreas.php') calls (via
'action=...') an intermediate PHP file ('GeoAreas.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-geoAreas.php (this one),
GeoAreas.php,
geoAreas.py.
Keywords: PHP, command line arguments,
Python script, gnuplot. |