Monday, September 20, 2004

Slope Fields in Maple

So, in my ODE class today I had to turn in this little assignment. Maple is a great computer algebra system. I had never really taken the time to get to know it until this semester. It took some time figuring out how to make it work, but eventually I was able to make this great slope field diagram:



The great thing about this diagram is that it shows you how different solution curves act with respect to the given differential equation. To produce this pretty picture you would use the following maple code:

> solve(x^3*(x^2-4),x);

> with (plots):
with(DEtools):
de:=diff(x(t),t)=x^3*(x^2-4);

> with (plots):
with (DEtools):
slopes:=dfieldplot(de,x(t),t=0..3,x=-3..3):
display(slopes);

Exciting isn't it? These things really do represent a great deal of my life right now. If only I could understand the discrete math as well as these, I would be doing great!

No comments: