Performs a regression
from given data ('Data table' or Excel), to find the underlying
parameters in a set of differential equations (ODE) of
a single variable, such as time in a multicomponent kinetics
problem (default example in Figure.)
This is a an application of the Python
'curve_fit' function, in the 'scipy.optimize' module, a part of the
Python 'SciPy' library.
Advantage is taken from: PHP,
for the web page; and Python for the numerical segment;
and 'gnuplot', for plotting.
Draws a plot of the original and
the adjusted data. |  |
Computation structure — A PHP file
(this page: 'P-curFitODE.php') calls (via
'action=...') an intermediate PHP file ('CurFitODE.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-curFitODE.php (this one),
CurFitODE.php,
curFitODE.py.
Keywords: PHP, command line arguments,
Python script, gnuplot. |
• (Wikipedia) PHP (from Personal Home Page)
• Python curve_fit [in Optimization and root finding (scipy.optimize)],
accessed 25-Oct-2023.
• Ford Versypt, Ashlee N., School of Eng.ing and
Applied Science, University at Buffalo, SUNY. GitHub: L13 Parameter Estimation in Python,
accessed 31-Oct-2023.
• 1927-10-27: Postnikov, Mikhail Mikhailovich
(Михаил Михайлович Постников)
(†2004-05-17, 76 yrs.). |