@@ -10,15 +10,10 @@ examples illustrating their use.
1010Package overview
1111================
1212
13- The python-control package is a set of python classes and functions that
14- implement common operations for the analysis and design of feedback control
15- systems. The initial goal is to implement all of the functionality required
16- to work through the examples in the textbook `Feedback Systems
17- <http://fbsbook.org> `_ by Astrom and Murray. A :ref: `matlab-module ` is
18- available that provides many of the common functions corresponding to
19- commands available in the MATLAB Control Systems Toolbox.
20-
21- .. todo :: Add information from :module:`control`?
13+ .. automodule :: control
14+ :no-members:
15+ :no-inherited-members:
16+ :no-special-members:
2217
2318Installation
2419============
@@ -51,7 +46,7 @@ To install using pip::
5146
5247.. note ::
5348 If you install Slycot using pip you'll need a development
54- environment (e.g., Python development files, C and Fortran compilers).
49+ environment (e.g., Python development files, C, and Fortran compilers).
5550 Pip installation can be particularly complicated for Windows.
5651
5752Many parts of `python-control ` will work without `slycot `, but some
@@ -65,9 +60,10 @@ and verifying that no error message appears. More information on the
6560Slycot package can be obtained from the `Slycot project page
6661<https://github.com/python-control/Slycot> `_.
6762
68- Alternatively, to install from source, first `download the source
69- <https://github.com/python-control/python-control/releases> `_ and unpack it.
70- To install in your home directory, use::
63+ Alternatively, to install `python-control ` from source, first
64+ `download the source code
65+ <https://github.com/python-control/python-control/releases> `_ and
66+ unpack it. To install in your Python environment, use::
7167
7268 pip install .
7369
@@ -87,17 +83,29 @@ functionality may not be available.
8783
8884Some differences from MATLAB
8985============================
90- The python-control package makes use of `NumPy <http://www.numpy.org >`_ and
91- `SciPy <https://www.scipy.org >`_. A list of general differences between
92- NumPy and MATLAB can be found `here
86+
87+ Users familiar with the MATLAB control systems toolbox will find much
88+ of the functionality implemented in `python-control `, though using
89+ Python constructs and coding conventions. The python-control package
90+ makes heavy use of `NumPy <http://www.numpy.org >`_ and `SciPy
91+ <https://www.scipy.org> `_ and many differences are reflected in the
92+ use of those . A list of general differences between NumPy and MATLAB
93+ can be found `here
9394<https://docs.scipy.org/doc/numpy/user/numpy-for-matlab-users.html> `_.
9495
9596In terms of the python-control package more specifically, here are
9697some things to keep in mind:
9798
98- * You must include commas in vectors. So [1 2 3] must be [1, 2, 3].
99- * Functions that return multiple values use objects (with elements for
100- each return value) or tuples.
99+ * Vectors and matrices used as arguments to functions can be written
100+ using lists, with commas required between elements and column
101+ vectors implemented as nested list . So [1 2 3] must be written as
102+ [1, 2, 3] and matrices are written using 2D nested lists, e.g., [[1,
103+ 2], [3, 4]].
104+ * Functions that return multiple values use either objects (with
105+ elements for each return value) or tuples. The number of elements
106+ in a tuple is fixed and so functions that return variable numbers of
107+ return values will have a parameter of the form ``return_<val> ``
108+ that is used to return additional data.
101109* You cannot use braces for collections; use tuples instead.
102110* Time series data have time as the final index (see
103111 :ref: `time-series-convention `).
0 commit comments