Code for solving the example problems may be downloaded from this page. Five different languages are supported (more or less): (1) Python, (2) Matlab/Octave, (3) Fortran 90/95/2xxx (4) C++ and (5) Excel. The zip files below contain all the code needed to solve most of the examples described in the text. All of these codes have been tested on a Windows 10 computer running directly under Windows or in Cygwin. If you have trouble with any of these codes please contact me, larry@tildentechnologies.com.
● Codes.pdf - a simple manual/description of the example codes and supporting utility programs. It explains how to create and use the various codes.
Python
Read the PDF file above for an explanation. These have been run with Python 3.7.4 under Windows 10 and Cygwin.
Matlab/Octave (Aug. 2017)
Fortran 90/95/20xx (Jan. 2020)
A makefile is included for creating the support code and examples. Read the PDF for a description and instructions on compilation. I believe this code provides a good example of how to write modern Fortran. For example, the fundamental calculations are in a module with a modern interface and coding style. This is probably the best code you will find for these calculations. The code relies on LAPack routines for linear algebra, but you do not have to install the library. The LAPack routines are packaged in two modules and use wrappers which makes them easy to use and hides all the ugly old style Fortran.
C++ (Feb. 2017)
The
I am way behind in C++ coding. The fundamental calculation has no support for Chebyshev points, and relies on some inferior methods. However, it is written in an object oriented style, so the internal calculations can be improved and extended without affecting codes using it. There is a simple program to demonstrate fundamental calculations and the first example problem from Ch 3. I have deemphasized C++ somewhat due to the size of this project and because I assume Matlab and Python are of greater importance. It would help if I got some feedback from those following this project.