PyGSL is a Python interface to the GNU Scientific Library.
PyGSL version 0.9.5 was used for the development of the pygsl command in VFGEN 2.5.0.
Python files that can be used with the PyGSL ODEIV suite are created by the command
The files created are [name].py and, if the option demo=yes option is given, [name]_demo.py, where [name] is the name of the vector field given in the vector field file. The Python file [name].py will contain the function vectorfield, jacobian, and, if the func=yes option is given, a function for each Function defined in the vector field file, with the same name as the Function.
If the option func=yes is given,
VFGEN also converts any user-defined functions in the vector field file
into functions in the Python file. The names of the
functions will be the same as those given in the vector field file.
If the option demo=yes is given,
the file [name]_demo.py will contain a Python script for
a command-line ODE solver for the vector field.
The initial conditions and parameters can be specified on the command line.
The program will print the solution data to the console.
This output can be redirected to a file, and plotted with a program such as
Here is a sample vector field file: pendulum.vf.
The files created by