slopefield.py

Created by tracy-pratt-1

Created on January 09, 2026

2.75 KB

This script will allow you to generate a slope field for a given dy/dx on the x and y axes [-3, 3].

When inputting your dy/dx you must explicitly define every operation

Examples of inputting different slopes are below:

if dy/dx = 2x/y then input 2*x/y

if dy/dx = 0.5x+y then input 0.5*x+y

Watch a tutorial at https://www.youtube.com/watch?v=bT391K229Bs


During your visit to our site, NumWorks needs to install "cookies" or use other technologies to collect data about you in order to:

With the exception of Cookies essential to the operation of the site, NumWorks leaves you the choice: you can accept Cookies for audience measurement by clicking on the "Accept and continue" button, or refuse these Cookies by clicking on the "Continue without accepting" button or by continuing your browsing. You can update your choice at any time by clicking on the link "Manage my cookies" at the bottom of the page. For more information, please consult our cookies policy.