This is a python module to draw a slope field for a first-order differential equation in the form
The input is checked against a whitelist and then converted to a python function using
Installation using heroku
If you would like to host your own version of the slopefield app, you can use the following steps. Heroku allows anybody to host one free app.
Create and set up a Heroku account.
- Sign up for a Heroku account.
- Install the Heroku Toolbelt.
- Using your command shell, run
heroku loginto login to heroku
For more information, see https://devcenter.heroku.com/articles/quickstart.
Clone the slopefield app
You will need git installed. Run
$ git clone http://github.com/nathangrigg/slopefield.git $ cd slopefield
Create the Heroku app
Choose a name for your app. Mine is called slopefield, but you will have to use a different name. This will be part of the url of the app (e.g. slopefield.herokuapp.com).
$ heroku create slopefield
Finally, push the app to heroku using
$ git push heroku master
Written by Nathan Grigg, with contributions by Clinton Curry.
This work is licensed under a Creative Commons Attribution-ShareAlike 3.0 License.