An open API service indexing awesome lists of open source software.

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

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