©
Regression: parabola
A template for regression (PHP, python, Fortran, gnuplot).
2024.Nov.28 22:21:22
File to upload (Optional) Such as Regr.xlsx
Data sheet (Of uploaded file.)
Screen 'csv' data In 'csv' (Am or Eu) format,
ignored (but necessary) if a file is uploaded
Guesses Initial guesses for the parameters, a, b, and c. •
xtol, ftol, maxiter (-1: 1000 n. guess) Tolerances for x, y; max. iterations.
Show values Show graph coordinates.

Makes a regression (essentially a template) adjusting a parabola, a x² + b x + c, to the given x-y data (using PHP, python, Fortran 90, gnuplot).

The files involved (in a certain home directory) are:  (a) P-regression.php (this one); (b) Regression.php, 'action' manager; (c) regression.py, python hub importing following and 'gnuplot'; and (d) module from modRegression.f90.

Advantage is taken from: PHP, for the web page construction; python, as "glue"; Fortran, for easy numerical file handling; and gnuplot, for plotting. (Anomaly: the results of Linux 'wc' appear out of order.) For security, / is not allowed in the data.

Draws graphs with the experimental points and the calculated points from the regression a, b, and c.

References: Plate: Regression

• (Wikipedia) PHP (from Personal Home Page).

• (Wikipedia) Python (programming language). Python as glue. Using Python as glue. F2PY Users Guide and Reference Manual.

• (Wikipedia) Fortran (Fortran 90).

• (Wikipedia) gnuplot.

• 1888-10-17: Bernays, Paul Isaac (†1977-09-17, 88 yrs.).

 
 
Valid HTML 4.01! IST http://web.tecnico.ulisboa.pt/~mcasquilho/compute/python/P-regression.php
Created: 2021-10-17 — Last modified: 2021-10-18