Performs a regression
from given data (Data table' or Excel), adjusting unknown parameters to
a rough model (line, parabola), without solving the ODEs.
The default data were generated (solved elsewhere)
via 'Mathematica'.
Files involved:
P-regressionODE.php (this one),
RegressionODE.php,
regressionODE.py.
Advantage is taken from: PHP,
for the web page; and Python for the numerical segment;
and 'gnuplot', for plotting.
Draws plots of the original and the adjusted data.
Computation structure — A PHP file
(this page: 'P-regressionODE.php') calls (via
'action=...') an intermediate PHP file ('RegressionODE.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. |