You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('') and can be up to 35 characters long.
Mahdi Dibaiee
14c71e38f0

6 years ago  

app  6 years ago  
src  6 years ago  
test  6 years ago  
.gitignore  6 years ago  
LICENSE  6 years ago  
README.md  6 years ago  
Setup.hs  6 years ago  
minusy.png  6 years ago  
slopefield.cabal  6 years ago  
stack.yaml  6 years ago  
xpy.png  6 years ago  
xty.png  6 years ago  
ydx.png  6 years ago 
README.md
slopefield
I was studying this course on Integration when I encountered slope fields and I found them interesting!
So I thought I would give it a shot and try to write a program to draw slope fields myself! In order to read a mathematical function definition from input, I wrote mathexpr.
Get Started
If you haven't already, install Haskell Platform.
git clone https://github.com/mdibaiee/slopefield
cd slopefield
stack install
slopefield
Examples
Parameters:
 dy/dx: derivative of the function you are trying to visualize
 range: range of numbers to draw
 estimation size: size of
deltax
which is used to draw the slope corresponding to a small point,0.03
is usually a good number, but you might want to try out larger numbers to get a more detailed picture on some examples
dy/dx =
x + y
range  format: (lower, upper):
(10, 10)
estimation size:
0.03
dy/dx =
x * y
range  format: (lower, upper):
(10, 10)
estimation size:
0.03
dy/dx =
y
range  format: (lower, upper):
(10, 10)
estimation size:
0.03
dy/dx =
y/x
range  format: (lower, upper):
(20, 20)
estimation size:
0.1