Services & Resources / Wolfram Forums
MathGroup Archive
*Archive Index
*Ask about this page
*Print this page
*Give us feedback
*Sign up for the Wolfram Insider

MathGroup Archive 2003

[Date Index] [Thread Index] [Author Index]

Search the Archive

Re: slope fields

  • To: mathgroup at
  • Subject: [mg40179] Re: slope fields
  • From: Selwyn Hollis <selwynh at>
  • Date: Tue, 25 Mar 2003 03:03:58 -0500 (EST)
  • Sender: owner-wri-mathgroup at


Here's a little function that should be helpful:

<< Graphics`PlotField`;
PlotSlopeField[expr_, {t_,t1_,t2_}, {y_,y1_,y2_}, opts___?OptionQ] := 
PlotVectorField[{1,expr}, {t,t1,t2}, {y,y1,y2}, opts, 
ScaleFunction->(1&), Axes->True]


PlotSlopeField[ t - y, {t, 0, 2}, {y, 0, 2}]

PlotSlopeField[t - y, {t, 0, 2}, {y, 0, 2},
    PlotPoints -> {9,7}, ScaleFactor->.2, ColorFunction->(Hue[0]&)]

Selwyn Hollis

On Monday, March 24, 2003, at 04:28  AM, Tom wrote:

> I am not a frequent user of Mathematica and many of you have assisted 
> me
>   in the past with implicit plots and vertical tangent lines etc.
> Now I have to teach slope fields to my AP Calculus students, and while
> we can see them on the TI calculators, I would like to generate some
> using Mathematica so I can make some good print-outs.  I have used
> vector plots in the past to illustrate the main ideas, but they "don't
> look like the slope fields" in texts and on AP's.
> Can anyone help me on this?
> Thanks so much.
> Tom Moriarty

  • Prev by Date: Re: Strange behavior of Simplify
  • Next by Date: Re: Re: Strange behavior of Simplify
  • Previous by thread: slope fields
  • Next by thread: proper way to manipulate lists?