Updating Dr. Berendsen's Python programs

(1) Preliminary tests

To (2)      To Workbench Python

<Objective>

More than a decade has passed since the publication H.J.C.Berendsen, A Student's Guide to Data and Error Analysis , (Cambridge, 2011). I translated it with Dr. Baba, I was curious if his programs were still useful, which drove me to check them. If the result was negative, I tried to find an answer, although I was by no means experienced in python.

<Berendsen's original configuration>

  • Python 2.6 + numPy + scipy
  • plotsvg.py
  • physcon.py
The programs can be downloaded from authors website, http: //www.hjcb.nl/python.
<Testing procedure>

  1. Run the Anaconda navigator.
  2. Launch VS Code and try to run Berendsen's source code.
  3. If possible,revise the code so that we can reproduce the original result.
<Preliminary test of Figure P.1 (p.170)>

This is a cumulative plot of 200 data points. Python could not recognize plotsvg.py. Attempting to access Berendsen's web site was returned by the message "NET::ERR_CERT_DATE_INVALID"

Testing and Updating Pyson Code 0.2
This code gives various mathematical and physical Constants, but python did not recognize physicon.

Import of numpy and scipy can do the task, and It is also possible to utilizeCODATA Database.

Revised code 0.2 has produced the result shown in the right. Note that the code file is of txt format.

<Conclusion>

It is now difficult to utilize Dr. Berendsen's code. We had better use popular modules such as NumPy, SciPy, etc.

<Screen shot for the revised code>

9-18-2023, S. Hayashi