https://github.com/ddworken/slopefields
A slope field generator and grapher written in Python
https://github.com/ddworken/slopefields
Last synced: about 1 month ago
JSON representation
A slope field generator and grapher written in Python
- Host: GitHub
- URL: https://github.com/ddworken/slopefields
- Owner: ddworken
- License: gpl-3.0
- Created: 2016-01-30T17:03:07.000Z (over 10 years ago)
- Default Branch: master
- Last Pushed: 2016-02-03T20:22:04.000Z (over 10 years ago)
- Last Synced: 2025-02-18T05:36:44.954Z (over 1 year ago)
- Language: Python
- Size: 2.48 MB
- Stars: 1
- Watchers: 3
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.rst
- Changelog: CHANGES.txt
- License: LICENSE
Awesome Lists containing this project
README
SlopeFields
===========
A slope field generator and grapher written in Python
.. figure:: https://cloud.githubusercontent.com/assets/5304541/12723227/8e34b272-c8d6-11e5-87ff-c39c22260561.png
:alt: Example
For more example images, see `examples.md `_
.
Usage
=====
::
usage: slopeFields.py [-h] [--xMin XMIN] [--xMax XMAX] [--yMin YMIN]
[--yMax YMAX] [--initX INITX] [--initY INITY] [--dX DX]
[--line] [--approximate APPROXIMATE]
equation
Generate a slope field for a given function.
positional arguments:
equation The equation
optional arguments:
-h, --help show this help message and exit
--xMin XMIN Minimum x value.
--xMax XMAX Maximum x value.
--yMin YMIN Minimum y value.
--yMax YMAX Maximum y value.
--initX INITX The initial x value.
--initY INITY The initial y value.
--dX DX The dX value used in euler's method.
--line If you want to draw a line connecting the dots. Note
this may cause problems on functions with asymptotes.
--approximate APPROXIMATE
If you want to approximate f(a).
Installation
============
.. code:: bash
pip install SlopeFields