194
Introduction to Winplot Richland College Spring 2012 John Ganci [email protected]

Introduction to Winplot Richland College Spring 2012 John Ganci [email protected]

Embed Size (px)

Citation preview

Page 1: Introduction to Winplot Richland College Spring 2012 John Ganci jganci@dcccd.edu

Introduction to Winplot

Richland College Spring 2012John Ganci

[email protected]

Page 2: Introduction to Winplot Richland College Spring 2012 John Ganci jganci@dcccd.edu

2

Presentation Outline

• What is Winplot?• Obtaining and installing Winplot• Learning about Winplot• Drawing 2-dimensional graphs• Drawing 3-dimensional graphs• Copying Winplot graphs into other

applications• Sources of documentation• Summary• Appendix

Page 3: Introduction to Winplot Richland College Spring 2012 John Ganci jganci@dcccd.edu

3

What is Winplot?

• A Windows application that draws graphs– 2-dimensional curves– 3-dimensional curves and surfaces

• A lot more than a graphing calculator• A tool to illustrate mathematical concepts

– Slopes of lines, areas, volumes, vectors, to name a few– Animation allows one to show values as they change

• Best of all, it’s free!– The author is a faculty member at Phillips Exeter

Academy

Page 4: Introduction to Winplot Richland College Spring 2012 John Ganci jganci@dcccd.edu

4

Obtaining and Installing Winplot

• http://math.exeter.edu/rparris/winplot.html• Download the self-extracting zip file

wp32z.exe• Run the program

– The default installation directory is c:\peanut– Recommend that you change it to something else– Resulting unzipped file is winplot.exe

• The next few slides show parts of this process

Page 5: Introduction to Winplot Richland College Spring 2012 John Ganci jganci@dcccd.edu

5

Obtaining Winplot

Downloadlink

Lots of good info!

Page 6: Introduction to Winplot Richland College Spring 2012 John Ganci jganci@dcccd.edu

6

Installing Winplot

• Run the self-extracting zip file wp32z.exe

Recommend that you

change this

Page 7: Introduction to Winplot Richland College Spring 2012 John Ganci jganci@dcccd.edu

7

Learning About Winplot• Search the web for “winplot tutorial”

These two arevery good

Page 8: Introduction to Winplot Richland College Spring 2012 John Ganci jganci@dcccd.edu

8

Learning About Winplot• Supplemental materials on Winplot home page

Page 9: Introduction to Winplot Richland College Spring 2012 John Ganci jganci@dcccd.edu

9

Learning About Winplot• Al Lehnen’s home page; good stuff!!; scroll down

Page 10: Introduction to Winplot Richland College Spring 2012 John Ganci jganci@dcccd.edu

10

Learning About Winplot

Tutorial and

examples

Tutorial

Page 11: Introduction to Winplot Richland College Spring 2012 John Ganci jganci@dcccd.edu

11

Learning About Winplot

Tutorial, examples, links, and a Power Point Introduction to Winplot

Page 12: Introduction to Winplot Richland College Spring 2012 John Ganci jganci@dcccd.edu

12

Using Winplot

• Enough about learning!• It’s time to fire up Winplot and take it out for a

spin• 2-dimensional graphs

– Draw some simple ones– Show the various ways to draw graphs– Show how to show and see additional data about

them• Adding labels• Viewing table of values

• 3-dimensional graphs• Copying Winplot data to other applications• Okay, start Winplot

Page 13: Introduction to Winplot Richland College Spring 2012 John Ganci jganci@dcccd.edu

13

Winplot Initial Screen• Close tip box• Resize the Winplot screen the first time you invoke it

Page 14: Introduction to Winplot Richland College Spring 2012 John Ganci jganci@dcccd.edu

14

Winplot Initial Screen• Everything is accessed via the Window menu item• Next slide shows the two menu items

Page 15: Introduction to Winplot Richland College Spring 2012 John Ganci jganci@dcccd.edu

15

Winplot Initial Screen• Note Window values; we’ll start with 2-dim• Recommend checking Use defaults

Page 16: Introduction to Winplot Richland College Spring 2012 John Ganci jganci@dcccd.edu

16

2-dimensional Initial Screen• Before we graph anything we’ll add grid lines; click View

Page 17: Introduction to Winplot Richland College Spring 2012 John Ganci jganci@dcccd.edu

17

Adding Grid Lines …• Click Grid

Page 18: Introduction to Winplot Richland College Spring 2012 John Ganci jganci@dcccd.edu

18

… Adding Grid Lines• Dialog box appears• Axes is checked, as is both, so the x- and y-axes are shown• Ticks, arrows, and labels are checked• In the grid sub-box

– Check rectangular … then check dotted

– Then Apply, Close

• We’ll look at polar a little later

Page 19: Introduction to Winplot Richland College Spring 2012 John Ganci jganci@dcccd.edu

19

2-dimensional Plotting• Now we want to plot something (an equation); click

Equa

Page 20: Introduction to Winplot Richland College Spring 2012 John Ganci jganci@dcccd.edu

20

2-dimensional Plotting• Note values; we’ll do 1-4; click Explicit …

Page 21: Introduction to Winplot Richland College Spring 2012 John Ganci jganci@dcccd.edu

21

2-dimensional Plotting• Dialog box appears• Set the f(x)= value to 2*x+1• Leave the low and high x values at -5 and 5• Click color to select a color for the graph

Page 22: Introduction to Winplot Richland College Spring 2012 John Ganci jganci@dcccd.edu

22

2-dimensional Plotting• Click on one of the colored squares (blue); then

click Close

Page 23: Introduction to Winplot Richland College Spring 2012 John Ganci jganci@dcccd.edu

23

2-dimensional Plotting• Back to the equation dialog box• Change pen width for thicker line• Click ok

Page 24: Introduction to Winplot Richland College Spring 2012 John Ganci jganci@dcccd.edu

24

2-dimensional Plotting• A graph is displayed along with an inventory box• If you want to change the color or line thickness,

click Edit• Click View

Page 25: Introduction to Winplot Richland College Spring 2012 John Ganci jganci@dcccd.edu

25

2-dimensional Plotting• We’ve already looked at Grid; note values; click

View …

Page 26: Introduction to Winplot Richland College Spring 2012 John Ganci jganci@dcccd.edu

26

2-dimensional Plotting• Here’s how you can set the displayed bounds of the

graph• Click “set corners” to set the x and y bounds• Click “set center” to set the center point and width

Page 27: Introduction to Winplot Richland College Spring 2012 John Ganci jganci@dcccd.edu

27

2-dimensional Plotting• Next we will draw a graph several different ways• First we delete the current graph so that we begin

“fresh”• The first graph will again use Explicit• We enter sqrt(16-x^2) for the function• We take the default range, [-5,5], for x (wrong, but

ok)• We choose a color and click ok

Page 28: Introduction to Winplot Richland College Spring 2012 John Ganci jganci@dcccd.edu

28

2-dimensional Plotting• A graph is displayed along with an inventory box• We want the other half of the semicircle; click dupl(icate)

Page 29: Introduction to Winplot Richland College Spring 2012 John Ganci jganci@dcccd.edu

29

2-dimensional Plotting• Another explicit equation dialog box• Enter minus sign to the left of sqrt(16-x^2); click ok

Page 30: Introduction to Winplot Richland College Spring 2012 John Ganci jganci@dcccd.edu

30

2-dimensional Plotting• Now have entire circle; note the two items in the

inventory

Page 31: Introduction to Winplot Richland College Spring 2012 John Ganci jganci@dcccd.edu

31

2-dimensional Plotting: Parametric

• Graph using parametric equations; click Equa, then Parametric

Page 32: Introduction to Winplot Richland College Spring 2012 John Ganci jganci@dcccd.edu

32

2-dimensional Plotting: Parametric

• The equation dialog box for parametric is displayed• This time two functions must be entered; x=f(t), y=g(t)• Enter 3cos(t) for f(t) and 3sin(t) for g(t)• Note that t ranges from 0 to 1• Change high t to 2pi• As before, click color; click a color; click close; click ok

f(t)=3cos(t)g(t)=3sin(t)

2pi

Page 33: Introduction to Winplot Richland College Spring 2012 John Ganci jganci@dcccd.edu

33

2-dimensional Plotting: Parametric

• Note the new graph and the new inventory entry

Page 34: Introduction to Winplot Richland College Spring 2012 John Ganci jganci@dcccd.edu

34

2-dimensional Plotting: Implicit

• Next is implicit; click Equa; click Implicit …

Page 35: Introduction to Winplot Richland College Spring 2012 John Ganci jganci@dcccd.edu

35

2-dimensional Plotting: Implicit

• Another equation dialog box, but for implicit• Fill in x^2+y^2 = 4 (or xx+yy=4)• Choose a color; click ok

x^2+y^2=4

Page 36: Introduction to Winplot Richland College Spring 2012 John Ganci jganci@dcccd.edu

36

2-dimensional Plotting: Implicit

• Note the new graph and the new inventory entry

Page 37: Introduction to Winplot Richland College Spring 2012 John Ganci jganci@dcccd.edu

37

2-dimensional Plotting: Polar• Lastly we graph a polar equation; click Equa; click

Polar …

Page 38: Introduction to Winplot Richland College Spring 2012 John Ganci jganci@dcccd.edu

38

2-dimensional Plotting: Polar• The equation dialog box for polar is displayed• The t value is theta; f(t) is the r value; that is, r=f(t)• Enter 1 for the f(t) value• Note that the t values range from 0 to 2pi• Choose a color; click ok

Page 39: Introduction to Winplot Richland College Spring 2012 John Ganci jganci@dcccd.edu

39

2-dimensional Plotting: Polar• Note the fourth graph and the fourth inventory

entry

Page 40: Introduction to Winplot Richland College Spring 2012 John Ganci jganci@dcccd.edu

40

2-dimensional Plotting: Table• Let’s look at the table of values for a few of the equations• All tables are accessed via the inventory button “table”• Highlight the inventory entry then click table• Each is shown on the following slides (no table for implicit)• Close the table by clicking Close

Page 41: Introduction to Winplot Richland College Spring 2012 John Ganci jganci@dcccd.edu

41

2-dimensional Plotting: Table• y=sqrt(16-x^2); note undefined values; click Close

when done

Page 42: Introduction to Winplot Richland College Spring 2012 John Ganci jganci@dcccd.edu

42

2-dimensional Plotting: Table• Table for parametric equations x=3cos(t), y=3sin(t)

Page 43: Introduction to Winplot Richland College Spring 2012 John Ganci jganci@dcccd.edu

43

2-dimensional Plotting: Table• Table for polar equation r=1

Page 44: Introduction to Winplot Richland College Spring 2012 John Ganci jganci@dcccd.edu

44

2-dimensional Plotting: Polar, Part 2

• We now graph a cardioid• Start with a clean 2-dim screen• We enter the polar equation r = 2 + 3 sin θ• Add grid lines, but use a polar grid• The next slide shows Winplot after Equa-

>Polar

Page 45: Introduction to Winplot Richland College Spring 2012 John Ganci jganci@dcccd.edu

45

2-dimensional Plotting: Polar, Part 2

• Note: t instead of θ; t ranges from 0 to 2pi• Change pen width to 2; choose a color• Click ok

Page 46: Introduction to Winplot Richland College Spring 2012 John Ganci jganci@dcccd.edu

46

2-dimensional Plotting: Polar, Part 2

• Zoom out: PgDn a few times; then View->Grid…

Page 47: Introduction to Winplot Richland College Spring 2012 John Ganci jganci@dcccd.edu

47

2-dimensional Plotting: Polar, Part 2• Click polar (axis); polar sectors; 24; apply;

close

Page 48: Introduction to Winplot Richland College Spring 2012 John Ganci jganci@dcccd.edu

48

2-dimensional Plotting: Polar, Part 2• Polar graph paper!

Page 49: Introduction to Winplot Richland College Spring 2012 John Ganci jganci@dcccd.edu

49

2-dimensional Plotting: Calculus I

• The next example illustrates how an integral is approximated using Riemann sums

• The approximating rectangles are shown• The number of rectangles can be changed• The example also illustrates how to graph

the antiderivative and add explanatory text• Start with a new 2-dim screen• Begin by entering y=x^2 on Equa->Explicit

Page 50: Introduction to Winplot Richland College Spring 2012 John Ganci jganci@dcccd.edu

50

2-dimensional Plotting: Calculus I

• One->Measurement->Integrate

Page 51: Introduction to Winplot Richland College Spring 2012 John Ganci jganci@dcccd.edu

51

2-dimensional Plotting: Calculus I

• Set lower limit to 1, upper limit to 2• Set subintervals to 5• Check left endpoint; check overlay; choose a color• Click definite

Page 52: Introduction to Winplot Richland College Spring 2012 John Ganci jganci@dcccd.edu

52

2-dimensional Plotting: Calculus I

• Note new rectangles and new approximate value

• Click indefinite

Page 53: Introduction to Winplot Richland College Spring 2012 John Ganci jganci@dcccd.edu

53

2-dimensional Plotting: Calculus I

• Note new graph and new inventory entry• Highlight new inventory entry; click edit

Page 54: Introduction to Winplot Richland College Spring 2012 John Ganci jganci@dcccd.edu

54

2-dimensional Plotting: Calculus I

• Note that the f(x) value cannot be edited• Change the color; click ok

Page 55: Introduction to Winplot Richland College Spring 2012 John Ganci jganci@dcccd.edu

55

2-dimensional Plotting: Calculus I

• Not bad! Let’s add a few descriptive labels• First close the two dialog boxes by clicking close

Page 56: Introduction to Winplot Richland College Spring 2012 John Ganci jganci@dcccd.edu

56

2-dimensional Plotting: Calculus I

• Click Btns; note values; highlight or click Text• Position cursor to left of blue graph; right-click

Page 57: Introduction to Winplot Richland College Spring 2012 John Ganci jganci@dcccd.edu

57

2-dimensional Plotting: Calculus I

• Add what text you want to display• Change font/color; click font• The “tie text to” radio buttons associate the

text with one of three possibilities• If you don’t want the text to move when you

zoom in and out, check the frame button

Page 58: Introduction to Winplot Richland College Spring 2012 John Ganci jganci@dcccd.edu

58

2-dimensional Plotting: Calculus I

• Change font/font style/size• Change color of font• Click OK; Font dialog ends; click ok; edit text dialog ends

Page 59: Introduction to Winplot Richland College Spring 2012 John Ganci jganci@dcccd.edu

59

2-dimensional Plotting: Calculus I

• After adding a second label for the antiderivative• Left-click and drag text box to fine-tune position

Page 60: Introduction to Winplot Richland College Spring 2012 John Ganci jganci@dcccd.edu

60

2-dimensional Plotting: Animation

• Next we will see the power of Winplot• We construct an example that illustrates slope• The example is dynamic• The dynamics are done using Winplot’s

animation• Animation is done with parameters A-W• X, Y, and Z are reserved for functions• We start with a clean 2-dim screen• We add the grid lines as before• We enter the explicit function m*x+b• Example taken from Steve Simonds’ videos

Page 61: Introduction to Winplot Richland College Spring 2012 John Ganci jganci@dcccd.edu

61

2-dimensional Plotting: Animation• The initial parameter values are all 0, so

y=0

y=m*x+b = 0

Page 62: Introduction to Winplot Richland College Spring 2012 John Ganci jganci@dcccd.edu

62

2-dimensional Plotting: Animation

• Anim->Individual->B …• Repeat for M

Page 63: Introduction to Winplot Richland College Spring 2012 John Ganci jganci@dcccd.edu

63

2-dimensional Plotting: Animation

• Note initial M and B values; then slide M right

Page 64: Introduction to Winplot Richland College Spring 2012 John Ganci jganci@dcccd.edu

64

2-dimensional Plotting: Animation

• Note new M and new line; slide B left (down)

Page 65: Introduction to Winplot Richland College Spring 2012 John Ganci jganci@dcccd.edu

65

2-dimensional Plotting: Animation

• Note new B and new line position

Page 66: Introduction to Winplot Richland College Spring 2012 John Ganci jganci@dcccd.edu

66

2-dimensional Plotting: Animation

• Now we have an animated line• Next we want to illustrate slope• Add two points to the line (P and P+ΔP)• Add the “rise” and “run” segments

– That is, we add the “slope triangle”

• Points are added via the Equa menu item

• Segments are added the same way• The points and segments will be

animated

Page 67: Introduction to Winplot Richland College Spring 2012 John Ganci jganci@dcccd.edu

67

2-dimensional Plotting: Animation

• The first point is (p,m*p+b)• The second point is (p+d, m*(p+d)+b)• The parameter values P and D animate the

points• Plot the points and open the animation

boxes

Page 68: Introduction to Winplot Richland College Spring 2012 John Ganci jganci@dcccd.edu

68

2-dimensional Plotting: Animation

• Equa->Point->(x,y) …

Page 69: Introduction to Winplot Richland College Spring 2012 John Ganci jganci@dcccd.edu

69

2-dimensional Plotting: Animation

• Set x to p; set y to m*p+b• Select solid• Set dot size to 4• Choose a color for the point• Click ok when done

x=py=m*p+b

Page 70: Introduction to Winplot Richland College Spring 2012 John Ganci jganci@dcccd.edu

70

2-dimensional Plotting: Animation

• Note inventory; P=0, so the point is (0,B)

Page 71: Introduction to Winplot Richland College Spring 2012 John Ganci jganci@dcccd.edu

71

2-dimensional Plotting: Animation

• Follow the same steps to add the second point

• The x-coordinate of the point is p+d• The y-coordinate of the point is m*(p+d)

+b• Use a different color for this point• Finally, display the animation boxes for P

and D• Resulting graph is shown on the next slide

Page 72: Introduction to Winplot Richland College Spring 2012 John Ganci jganci@dcccd.edu

72

2-dimensional Plotting: Animation

• Note inventory; since D=0, the points coincide

Both points

Page 73: Introduction to Winplot Richland College Spring 2012 John Ganci jganci@dcccd.edu

73

2-dimensional Plotting: Animation

• Slide D to the right so points don’t coincide

(p, m*p+b)

(p+d, m*(p+d)+b)

Page 74: Introduction to Winplot Richland College Spring 2012 John Ganci jganci@dcccd.edu

74

2-dimensional Plotting: Animation

• Now the “rise” and “run” must be added• The “run” is the horizontal segment

joining (p, m*p+b) to (p+d, m*p+b)• The “rise” is the vertical segment

joining (p+d, m*p+b) to (p+d, m*(p+d)+b)

• Segments are added via Equa• The adding of the first segment is

shown on the next few slides

Page 75: Introduction to Winplot Richland College Spring 2012 John Ganci jganci@dcccd.edu

75

2-dimensional Plotting: Animation

• Equa->Segment->(x,y) …

Page 76: Introduction to Winplot Richland College Spring 2012 John Ganci jganci@dcccd.edu

76

2-dimensional Plotting: Animation

• Dialog box for the segment is displayed• Set x1 = p, y1 = m*p+b• Set x2 = p+d, y2 = m*p+b• Set pen width to 3 (thicker line

segment)• Choose a color• Click ok• Similar for “rise”

– x1 = p+d, y1 = m*p+b– x2 = p+d, y2 = m*(p+d)+b

Page 77: Introduction to Winplot Richland College Spring 2012 John Ganci jganci@dcccd.edu

77

2-dimensional Plotting: Animation

• We have one small item to fix

Page 78: Introduction to Winplot Richland College Spring 2012 John Ganci jganci@dcccd.edu

78

2-dimensional Plotting: Animation

• The “rise” and “run” terminate at the points• Because of the colors, we can see the

segments• We must delete and add back the two points• Use the inventory dupl button to duplicate

each point; the duplicated point appears at the bottom of the inventory

• Use the inventory delete button to delete the original two points

Page 79: Introduction to Winplot Richland College Spring 2012 John Ganci jganci@dcccd.edu

79

2-dimensional Plotting: Animation• Note the points are now on top of the

segments

Page 80: Introduction to Winplot Richland College Spring 2012 John Ganci jganci@dcccd.edu

80

2-dimensional Plotting: Animation

• Now “animate” several of the values– Make M a little smaller– Make B a little larger– Slide P to the left (move first point down)

• Result shown on next slide

Page 81: Introduction to Winplot Richland College Spring 2012 John Ganci jganci@dcccd.edu

81

2-dimensional Plotting: Animation• How about that!!!

Page 82: Introduction to Winplot Richland College Spring 2012 John Ganci jganci@dcccd.edu

82

2-dimensional Plotting: Calculus I

• The next 2-dimensional example is optional• The example illustrates “epsilon-delta” for

the “limit of f(x) as x approaches a” for a continuous function f

• Explicit and implicit shading is illustrated• The example uses e for epsilon and d for

delta• Animation is used to independently change

a, e, and d• Appendix A1 contains the instructions to

build the example• The next slide shows the example

Page 83: Introduction to Winplot Richland College Spring 2012 John Ganci jganci@dcccd.edu

83

2-dimensional Plotting: Calculus I

Page 84: Introduction to Winplot Richland College Spring 2012 John Ganci jganci@dcccd.edu

84

2-dimensional Plotting: Calculus II

• The final 2-dimensional example is optional

• The example illustrates the polar equation of a conic

• The example uses e for the eccentricity and d for the directrix

• Animation is used to independently change e and d

• A point on the conic is auto-animated using u to show how the conic is drawn

• Appendix A2 contains the instructions to build the example

• The next slide shows the example

Page 85: Introduction to Winplot Richland College Spring 2012 John Ganci jganci@dcccd.edu

85

2-dimensional Plotting: Calculus II

Page 86: Introduction to Winplot Richland College Spring 2012 John Ganci jganci@dcccd.edu

86

3-dimensional Plotting• Start at the Winplot main screen; click Window;

click 3-dim

Page 87: Introduction to Winplot Richland College Spring 2012 John Ganci jganci@dcccd.edu

87

3-dimensional Plotting• Note similarities to 2-dim; click Equa

Page 88: Introduction to Winplot Richland College Spring 2012 John Ganci jganci@dcccd.edu

88

3-dimensional Plotting• Note similarities to 2-dim

Page 89: Introduction to Winplot Richland College Spring 2012 John Ganci jganci@dcccd.edu

89

3-dimensional Plotting

• The initial two screens are similar to 2-dim

• Equa and Anim are present• Equa has some additional values

– cylindrical and spherical– curve– plane

• Some 3-dim graphs produce undesirable results; must redraw using one of the other options

• Our first example uses Equa->Explicit to draw a hemisphere

Page 90: Introduction to Winplot Richland College Spring 2012 John Ganci jganci@dcccd.edu

90

3-dimensional Plotting• Equa->Explicit …

Page 91: Introduction to Winplot Richland College Spring 2012 John Ganci jganci@dcccd.edu

91

3-dimensional Plotting• Note the dialog box is for a function in

two variables: z=f(x,y)• Want to draw the upper hemisphere• The sphere is x^2+y^2+z^2=4• Set z=sqrt(4-x^2-y^2)• Set x lo = -2 = y lo, x hi = 2 = y hi• Choose a color; click ok

Page 92: Introduction to Winplot Richland College Spring 2012 John Ganci jganci@dcccd.edu

92

3-dimensional Plotting• No axes; what is the planar part?

Page 93: Introduction to Winplot Richland College Spring 2012 John Ganci jganci@dcccd.edu

93

3-dimensional Plotting• Display the axes: View->Axes->Axes

Page 94: Introduction to Winplot Richland College Spring 2012 John Ganci jganci@dcccd.edu

94

3-dimensional Plotting• The axes are shown; slightly hidden

Page 95: Introduction to Winplot Richland College Spring 2012 John Ganci jganci@dcccd.edu

95

3-dimensional Plotting• View; uncheck Hide segments

Page 96: Introduction to Winplot Richland College Spring 2012 John Ganci jganci@dcccd.edu

96

3-dimensional Plotting• Hidden lines are now visible

Page 97: Introduction to Winplot Richland College Spring 2012 John Ganci jganci@dcccd.edu

97

3-dimensional Plotting

• The planar “tags” are due to what Winplot uses for the domain of the function

• The Winplot domain is [-2,2] x [-2,2]– Look back at the Equa->Explicit dialog box

• There are points in the Winplot domain that are not in the actual domain

• Winplot sets z to 0 for these points• These points make up the planar “tags”

Page 98: Introduction to Winplot Richland College Spring 2012 John Ganci jganci@dcccd.edu

98

3-dimensional Plotting

• The sphere can be drawn using spherical coordinates; ρ=2 is x^2+y^2+z^2=4

• Delete the first attempt from the inventory

Page 99: Introduction to Winplot Richland College Spring 2012 John Ganci jganci@dcccd.edu

99

3-dimensional Plotting• Equa->Spherical …

Page 100: Introduction to Winplot Richland College Spring 2012 John Ganci jganci@dcccd.edu

100

3-dimensional Plotting

• The equation dialog box for spherical is displayed

• The r value is the ρ value; enter 2 there• The t value is the θ value; note that it

ranges from 0 to 6.28319 = 2π• The u value is the Φ value; note that it

ranges from 0 to 3.14159 = π• Choose a color• Click ok

Page 101: Introduction to Winplot Richland College Spring 2012 John Ganci jganci@dcccd.edu

101

3-dimensional Plotting• Display the axes again; much better!

Page 102: Introduction to Winplot Richland College Spring 2012 John Ganci jganci@dcccd.edu

102

3-dimensional Plotting• All the quadric surfaces can be drawn

– Ellipsoid– Elliptic paraboloid– Hyperbolic paraboloid– Hyperboloids with one and two sheets

• Equa->Explicit doesn’t always yield good results– Use parametric or cylindrical instead

• Cross-sections can be added using planes– Animation can be used to show the level curves

• The next example shows a hyperboloid with one sheet and its three cross-sections

Page 103: Introduction to Winplot Richland College Spring 2012 John Ganci jganci@dcccd.edu

103

3-dimensional Plotting• Note inventory; animate on B,C,D; rotate graph

AnimParameters A-W

Page 104: Introduction to Winplot Richland College Spring 2012 John Ganci jganci@dcccd.edu

104

3-dimensional Plotting

• We next look at a space curve and its four related vectors: r=position vector, T=unit tangent vector, N=unit normal vector, and B=unit binormal vector

• To make things interesting, we animate a point, showing all the values as the point moves along the curve

• The space curve is a variation of the “twisted cubic”

• The animation gives visual feedback about why it is called “twisted”

Page 105: Introduction to Winplot Richland College Spring 2012 John Ganci jganci@dcccd.edu

105

3-dimensional Plotting• An initial view of the graph; includes

labels

Slide notes area shows the inventory

Page 106: Introduction to Winplot Richland College Spring 2012 John Ganci jganci@dcccd.edu

106

3-dimensional Plotting

• A final 3-dimensional graph is taken from a problem in James Stewert’s “Calculus, Early Transcendentals” text. It graphically shows a 3-dimensional solid bounded by several curves and planes.

• You can use the arrow keys to rotate the solid to see it from just about any angle.

Page 107: Introduction to Winplot Richland College Spring 2012 John Ganci jganci@dcccd.edu

107

3-dimensional Plotting• Rotate the graph to “look inside”

Page 108: Introduction to Winplot Richland College Spring 2012 John Ganci jganci@dcccd.edu

108

Copying Graphs to Other Applications

• As a final illustration, we show how easy it is to copy a Winplot graph into a Word document

• We copy the 3-dimensional graph on the previous slide into a Word document

• In Winplot click on File• Click on Copy to clipboard (or Control-C)• Switch to your open Word document• Position where you want the graph• Click Edit; Paste (or Control-V)• That’s it! Result shown on next slide• The only recommendation is to do any fixing

up in Winplot before doing the copy and paste

Page 109: Introduction to Winplot Richland College Spring 2012 John Ganci jganci@dcccd.edu

109

Copying Graphs to Other Applications

Page 110: Introduction to Winplot Richland College Spring 2012 John Ganci jganci@dcccd.edu

110

Sources of Documentation• The web

– Use your favorite search engine

• The Winplot home page Supplemental link– Tutorials and examples in many languages– The two highlighted ones are especially good

• The Help menu items found throughout Winplot– While somewhat terse, there is good information

there

• The tips shown when Winplot is started– Reading through these provides lots of useful

information

Page 111: Introduction to Winplot Richland College Spring 2012 John Ganci jganci@dcccd.edu

111

Summary• Winplot is a free tool used to graph functions • Both 2-dimensional and 3-dimensional graphs• In this introduction we’ve only touched on some of

the many functions provided by Winplot• With some thought, a lot of helpful animations can

be created to illustrate concepts to your students • The Winplot author is very receptive to feedback

and fixes problems almost as soon as they’re reported

• Check the Winplot home page often to be sure your version is current– Always backup your current version before you replace it

• A special thanks to Richard Parris, the author of Winplot, and Al Lehnen, a contributor to the Winplot supplemental materials, for their help with my many questions

Page 112: Introduction to Winplot Richland College Spring 2012 John Ganci jganci@dcccd.edu

112

Appendix

• Appendix 1 (A1) contains the 2-dimensional “epsilon-delta” example

• Appendix 2 (A2) contains the 2-dimensional polar conic example

Page 113: Introduction to Winplot Richland College Spring 2012 John Ganci jganci@dcccd.edu

113

A1: Epsilon-Delta• The example illustrates how epsilon and

delta interact with respect to a fixed function f and an x value of a

• The function f is defined as a user function• Epsilon is represented by e, delta by d• Point P (a,f(a)) is on the graph of f• Points Q (a,0) and R (0,f(a)) are on the

axes• Dashed lines connect P to the axis points• The epsilon and delta “bands” are shaded• The a, e, and d values are animated• Next slide shows the end result

Page 114: Introduction to Winplot Richland College Spring 2012 John Ganci jganci@dcccd.edu

114

A1: Epsilon-Delta

Page 115: Introduction to Winplot Richland College Spring 2012 John Ganci jganci@dcccd.edu

115

A1: Epsilon-Delta• Overview of steps follows• Start with a new 2-dim graph• Add the function f as a user function• Add the a, d, and e animate dialog

boxes• Add the points P, Q, and R• Add the dashed lines PQ and PR• Add “band” horizontal and vertical lines• Add shading• Add labels

Page 116: Introduction to Winplot Richland College Spring 2012 John Ganci jganci@dcccd.edu

116

A1: Epsilon-Delta• Equa->User functions …

Page 117: Introduction to Winplot Richland College Spring 2012 John Ganci jganci@dcccd.edu

117

A1: Epsilon-Delta• Fill in function name; fill in function• Click Enter; note function; click close• Note: name must be at least 2

characters

Page 118: Introduction to Winplot Richland College Spring 2012 John Ganci jganci@dcccd.edu

118

A1: Epsilon-Delta• Equa->Explicit …

Page 119: Introduction to Winplot Richland College Spring 2012 John Ganci jganci@dcccd.edu

119

A1: Epsilon-Delta• Set f(x)=ff(x)• Set pen width=2; set color; click ok

Page 120: Introduction to Winplot Richland College Spring 2012 John Ganci jganci@dcccd.edu

120

A1: Epsilon-Delta• Graph is displayed; next add animation

boxes

Page 121: Introduction to Winplot Richland College Spring 2012 John Ganci jganci@dcccd.edu

121

A1: Epsilon-Delta• Anim->Individual->A …

Page 122: Introduction to Winplot Richland College Spring 2012 John Ganci jganci@dcccd.edu

122

A1: Epsilon-Delta• Note value is zero; note scroll bar in middle• Set left (lower) and right (upper) bounds for a• Enter -10; click set L (left bound); scroll bar at

left

• Enter 10; click set R (right bound); scroll bar at right

• Scroll A to 1

Page 123: Introduction to Winplot Richland College Spring 2012 John Ganci jganci@dcccd.edu

123

A1: Epsilon-Delta• Repeat the steps for d and e• Set both lower bounds to zero• Set both upper bounds to 2• Scroll both so that the values are 1• Next slide shows results

Page 124: Introduction to Winplot Richland College Spring 2012 John Ganci jganci@dcccd.edu

124

A1: Epsilon-Delta• We add P, Q, and R next

Page 125: Introduction to Winplot Richland College Spring 2012 John Ganci jganci@dcccd.edu

125

A1: Epsilon-Delta• P is (a,ff(a))• Q is (a,0)• R is (0,ff(a))• Details for P follow• Details for Q and R are not shown; similar

to P

Page 126: Introduction to Winplot Richland College Spring 2012 John Ganci jganci@dcccd.edu

126

A1: Epsilon-Delta• Equa->Point->(x,y) …

Page 127: Introduction to Winplot Richland College Spring 2012 John Ganci jganci@dcccd.edu

127

A1: Epsilon-Delta

• Set x to a; set y to ff(a)• Select solid• Choose a color for the point• Click ok when done• Next slide shows P, Q, and R

Page 128: Introduction to Winplot Richland College Spring 2012 John Ganci jganci@dcccd.edu

128

A1: Epsilon-Delta• Add dashed lines PQ and PR next

R

P

Q

Page 129: Introduction to Winplot Richland College Spring 2012 John Ganci jganci@dcccd.edu

129

A1: Epsilon-Delta• Equa->Segment->(x,y) …

Page 130: Introduction to Winplot Richland College Spring 2012 John Ganci jganci@dcccd.edu

130

A1: Epsilon-Delta• Instructions for PQ follow• Set x1=0, y1=ff(a)• Set x2=a, y2=ff(a)• Set color; click dotted; click ok• PR is similar; use dupl, then edit• Dupl P then delete first P• Next slide shows both segments; P is above

both

Page 131: Introduction to Winplot Richland College Spring 2012 John Ganci jganci@dcccd.edu

131

A1: Epsilon-Delta• Next add the lines that bound the

“bands”

Page 132: Introduction to Winplot Richland College Spring 2012 John Ganci jganci@dcccd.edu

132

A1: Epsilon-Delta• The “epsilon band” lines are y=ff(a)-e

and y=ff(a)+e• These are added as explicit functions• The “delta band” lines are x=a-d and

x=a+d• These are added as lines• The addition of one of each is shown on

the next few slides

Page 133: Introduction to Winplot Richland College Spring 2012 John Ganci jganci@dcccd.edu

133

A1: Epsilon-Delta• Equa->Explicit …

Page 134: Introduction to Winplot Richland College Spring 2012 John Ganci jganci@dcccd.edu

134

A1: Epsilon-Delta• Add the bottom line• Set f(x) to ff(a)-e; set color; click ok• Repeat for top line; not shown (use dupl)• Set f(x) to ff(a)+e; click ok• Next slide shows the two lines

Page 135: Introduction to Winplot Richland College Spring 2012 John Ganci jganci@dcccd.edu

135

A1: Epsilon-Delta• The vertical lines are done next

Page 136: Introduction to Winplot Richland College Spring 2012 John Ganci jganci@dcccd.edu

136

A1: Epsilon-Delta• Equa->Line …

Page 137: Introduction to Winplot Richland College Spring 2012 John Ganci jganci@dcccd.edu

137

A1: Epsilon-Delta• Add the left vertical line• Set a=1, b=0, c=a-d; change color;

click ok• Use dupl for right vertical line (not

shown)• Set a=1, b=0, c=a+d; click ok• Next slide shows the two lines

Page 138: Introduction to Winplot Richland College Spring 2012 John Ganci jganci@dcccd.edu

138

A1: Epsilon-Delta• One more item before we shade the

“bands”

Page 139: Introduction to Winplot Richland College Spring 2012 John Ganci jganci@dcccd.edu

139

A1: Epsilon-Delta• Equa; note “Shade explicit inequalities

…” is available but “Shade implicit inequalities …” is grayed out

Page 140: Introduction to Winplot Richland College Spring 2012 John Ganci jganci@dcccd.edu

140

A1: Epsilon-Delta• The “epsilon band” is shaded explicitly• The “delta band” is shaded implicitly• We need to add two implicit values so

that “Shade implicit inequalities …” is available

• The next few slides do this

Page 141: Introduction to Winplot Richland College Spring 2012 John Ganci jganci@dcccd.edu

141

A1: Epsilon-Delta• Equa->Implicit …

Page 142: Introduction to Winplot Richland College Spring 2012 John Ganci jganci@dcccd.edu

142

A1: Epsilon-Delta• Fill in x=a-d; set color; click ok• Use dupl to add second implicit (not

shown)• Fill in x=a+d; click ok• Click the graph button for these two

items in the inventory so that they are hidden

• Next slide shows the results

Page 143: Introduction to Winplot Richland College Spring 2012 John Ganci jganci@dcccd.edu

143

A1: Epsilon-Delta• We’re ready to do the shading now

Page 144: Introduction to Winplot Richland College Spring 2012 John Ganci jganci@dcccd.edu

144

A1: Epsilon-Delta• Equa->Shade explicit inequalities …

Page 145: Introduction to Winplot Richland College Spring 2012 John Ganci jganci@dcccd.edu

145

A1: Epsilon-Delta• First dropdown; select y=ff(a)-e• Click between radio button• Second dropdown; select y=f(a)+e• Select color; click shade; note values; click

close

Page 146: Introduction to Winplot Richland College Spring 2012 John Ganci jganci@dcccd.edu

146

A1: Epsilon-Delta• Equa->Shade implicit inequalities …

Page 147: Introduction to Winplot Richland College Spring 2012 John Ganci jganci@dcccd.edu

147

A1: Epsilon-Delta• Click x=a-d; click change = to >; change color• Click x=a+d; click change = to <• Insure shading is correct; click close

Page 148: Introduction to Winplot Richland College Spring 2012 John Ganci jganci@dcccd.edu

148

A1: Epsilon-Delta• Almost done! (Now is a good time to

save)

Page 149: Introduction to Winplot Richland College Spring 2012 John Ganci jganci@dcccd.edu

149

A1: Epsilon-Delta

• The last items to add are the labels• The addition of one label is shown• The remaining labels are added in a

similar manner

Page 150: Introduction to Winplot Richland College Spring 2012 John Ganci jganci@dcccd.edu

150

A1: Epsilon-Delta• Btns->Text

Page 151: Introduction to Winplot Richland College Spring 2012 John Ganci jganci@dcccd.edu

151

A1: Epsilon-Delta• Right click near where you want the

label• Fill in text; optionally change font• Click tie text to frame; click ok• Repeat process for all the labels• Right click inside one to edit it• Click and drag them to fine-tune

position• Final result shown on next slide

Page 152: Introduction to Winplot Richland College Spring 2012 John Ganci jganci@dcccd.edu

152

A1: Epsilon-Delta• Note the labels; (save the graph again)

Page 153: Introduction to Winplot Richland College Spring 2012 John Ganci jganci@dcccd.edu

153

A1: Epsilon-Delta• Time to use the example• Set a to a particular value, say 1• Set e to a particular value, say 1• Scroll d until the graph, restricted to the

vertical band, is bounded by the horizontal band (within the intersection rectangle)

• Setting e to a particular value corresponds to “for every epsilon …”

• Scrolling d until the graph lies within the intersection rectangle corresponds to “there is a delta …”

• One possibility is shown on the next slide

Page 154: Introduction to Winplot Richland College Spring 2012 John Ganci jganci@dcccd.edu

154

A1: Epsilon-Delta• Looks like delta=0.36 works for

epsilon=1

Page 155: Introduction to Winplot Richland College Spring 2012 John Ganci jganci@dcccd.edu

155

A1: Epsilon-Delta• Play some more• Change e; does d need to change?• Change a, leaving e as before; does d

need to change?• Try changing the user-defined function;

does anything else need to change?• This concludes the example

Page 156: Introduction to Winplot Richland College Spring 2012 John Ganci jganci@dcccd.edu

156

A2: Polar Conic• Recall that a conic is the set of points P

whose distance from a fixed point F (the focus) are a constant multiple (the eccentricity) of the distance from P to a fixed line L (the directrix); that is, |PF| = e|PL|

• The polar equation r = ed/(1+e*cos(θ)) is a conic with focus F at the pole and directrix L a vertical line that intersects the polar axis

• Our next example illustrates F, L, P, PF, PL, and how P changes as the parameter value θ changes

• The next slide shows the final result

Page 157: Introduction to Winplot Richland College Spring 2012 John Ganci jganci@dcccd.edu

157

A2: Polar Conic

Page 158: Introduction to Winplot Richland College Spring 2012 John Ganci jganci@dcccd.edu

158

A2: Polar Conic

• The example illustrates how a graph can do an “active” animation

• The eccentricity and directrix are animated

• The example also illustrates how to use a “User Function”, thus making the Inventory somewhat “dynamic”

• Start with a new 2-dim screen• Building this example takes some work,

but is worth it

Page 159: Introduction to Winplot Richland College Spring 2012 John Ganci jganci@dcccd.edu

159

A2: Polar Conic• Equa->User functions …

Page 160: Introduction to Winplot Richland College Spring 2012 John Ganci jganci@dcccd.edu

160

A2: Polar Conic• Type conic in name, ed/(1+ecos(x)) in

name(x)

• Click Enter; note value; click close

Page 161: Introduction to Winplot Richland College Spring 2012 John Ganci jganci@dcccd.edu

161

A2: Polar Conic• Equa->Polar …

Page 162: Introduction to Winplot Richland College Spring 2012 John Ganci jganci@dcccd.edu

162

A2: Polar Conic• Replace f(t) with conic(t)• Note low, high t are correctly set to 0,

2pi• Set pen width to 2• Set color• Click ok

Page 163: Introduction to Winplot Richland College Spring 2012 John Ganci jganci@dcccd.edu

163

A2: Polar Conic• Can’t see graph because d and e are

zero!!!• Next open the d and e animate boxes

Page 164: Introduction to Winplot Richland College Spring 2012 John Ganci jganci@dcccd.edu

164

A2: Polar Conic• Anim->Individual->D …

Page 165: Introduction to Winplot Richland College Spring 2012 John Ganci jganci@dcccd.edu

165

A2: Polar Conic• Note value is zero; note scroll bar in middle• Set left (lower) and right (upper) bounds for d• Click set L (left bound); scroll bar now at left

• Enter 10; click set R (right bound); scroll bar at right

Page 166: Introduction to Winplot Richland College Spring 2012 John Ganci jganci@dcccd.edu

166

A2: Polar Conic• Still no graph, this time because d is 10• Lower the d value to 2; click or drag

Page 167: Introduction to Winplot Richland College Spring 2012 John Ganci jganci@dcccd.edu

167

A2: Polar Conic• Hyperbolas appear! • Open and set animation for e

Page 168: Introduction to Winplot Richland College Spring 2012 John Ganci jganci@dcccd.edu

168

A2: Polar Conic• Note value is 2.71828; note scroll bar• Set left (lower) and right (upper) bounds for e• Enter 0; click set L; scroll bar at left

• Enter 10; click set R (right bound); scroll bar at right

• No change in graph; lower the e value to 2

Page 169: Introduction to Winplot Richland College Spring 2012 John Ganci jganci@dcccd.edu

169

A2: Polar Conic• Still a hyperbola since e > 1

Page 170: Introduction to Winplot Richland College Spring 2012 John Ganci jganci@dcccd.edu

170

A2: Polar Conic• Directrix is next; Equa->Line …

Page 171: Introduction to Winplot Richland College Spring 2012 John Ganci jganci@dcccd.edu

171

A2: Polar Conic• Note a, b, c values• Set a=1, b=0, c=d; change pen width to

2; change color; click ok

x=d

Page 172: Introduction to Winplot Richland College Spring 2012 John Ganci jganci@dcccd.edu

172

A2: Polar Conic• Now we see the directrix; next is the

focus

x=d

Page 173: Introduction to Winplot Richland College Spring 2012 John Ganci jganci@dcccd.edu

173

A2: Polar Conic• Equa->Point->(x,y) …

Page 174: Introduction to Winplot Richland College Spring 2012 John Ganci jganci@dcccd.edu

174

A2: Polar Conic• Set x=0, y=0• Click solid• Set dot size to 3• Set color• Click ok

Page 175: Introduction to Winplot Richland College Spring 2012 John Ganci jganci@dcccd.edu

175

A2: Polar Conic• Now we see the focus

Page 176: Introduction to Winplot Richland College Spring 2012 John Ganci jganci@dcccd.edu

176

A2: Polar Conic• The point P on the conic is now added• Anticipating that we want to animate P to

see it move along the conic, we define it using a parameter, u– P has polar coordinates (conic(u),u)

• A second point, D (on the directrix), is added; the distance from P to the directrix is |PD|; the point D is also defined in terms of u– D has rectangular coordinates (d, conic(u)sin(u))

• The next three slides show how P is added• We do not show the addition of D since it is

similar to what was done for the focus

Page 177: Introduction to Winplot Richland College Spring 2012 John Ganci jganci@dcccd.edu

177

A2: Polar Conic• Add point P: Equa->Point->(r,t) …

Page 178: Introduction to Winplot Richland College Spring 2012 John Ganci jganci@dcccd.edu

178

A2: Polar Conic• Set r=conic(u), t=u• Click solid• Set dot size to 3• Set color• Click ok• Next slide shows both P and D

Page 179: Introduction to Winplot Richland College Spring 2012 John Ganci jganci@dcccd.edu

179

A2: Polar Conic• Red point is P; green point on directrix

is D• Note that u is initially zero

P D

Page 180: Introduction to Winplot Richland College Spring 2012 John Ganci jganci@dcccd.edu

180

A2: Polar Conic• Add the animation dialog box for u• Proceed as we did for d and e• Set lower bound to 0 and upper bound to

2pi• Move the scroll bar so that u is greater

than zero• Result shown on next slide

Page 181: Introduction to Winplot Richland College Spring 2012 John Ganci jganci@dcccd.edu

181

A2: Polar Conic• Note that P and D have moved

Page 182: Introduction to Winplot Richland College Spring 2012 John Ganci jganci@dcccd.edu

182

A2: Polar Conic• Almost done!• What’s left is to add the line segment from

the focus, F, to P and the line segment from P to D

• We use rectangular coordinates for both• The endpoints of PF are

(conic(u)cos(u),conic(u)sin(u)) and(0,0)• The endpoints of PD are

(conic(u)cos(u),conic(u)sin(u)) and (d,conic(u)sin(u))

• The next four slides show the addition of PD• The addition of PF is similar so is not shown

Page 183: Introduction to Winplot Richland College Spring 2012 John Ganci jganci@dcccd.edu

183

A2: Polar Conic• Equa->Segment->(x,y) …

Page 184: Introduction to Winplot Richland College Spring 2012 John Ganci jganci@dcccd.edu

184

A2: Polar Conic• Set x1=conic(u)cos(u), y1=conic(u)sin(u)• Set x2=d, y2=conic(u)sin(u)• Click dotted• Set color• Click ok• Next slide shows both segments

Page 185: Introduction to Winplot Richland College Spring 2012 John Ganci jganci@dcccd.edu

185

A2: Polar Conic• Highlight P in inventory; dupl; delete

original

Page 186: Introduction to Winplot Richland College Spring 2012 John Ganci jganci@dcccd.edu

186

A2: Polar Conic• Graph is done! (Now is a good time to

save it)

Page 187: Introduction to Winplot Richland College Spring 2012 John Ganci jganci@dcccd.edu

187

A2: Polar Conic• Time to play!• The next few slides simulate the playing• You can do better• We show e=1 (parabola) and e<1

(ellipse)• It’s much more fun to watch the graph

change as you move the scroll bar for e• We wrap up the example by showing how

you can auto-animate P

Page 188: Introduction to Winplot Richland College Spring 2012 John Ganci jganci@dcccd.edu

188

A2: Polar Conic• Parabola (e=1)

Page 189: Introduction to Winplot Richland College Spring 2012 John Ganci jganci@dcccd.edu

189

A2: Polar Conic• Ellipse (e<1)

Page 190: Introduction to Winplot Richland College Spring 2012 John Ganci jganci@dcccd.edu

190

A2: Polar Conic• Hyperbola (e>1)

Page 191: Introduction to Winplot Richland College Spring 2012 John Ganci jganci@dcccd.edu

191

A2: Polar Conic• Our last illustration with this example is

actually why the example was created• When the graph is drawn, it is drawn so

fast that you can’t tell the direction drawn

• We get around this by auto-animating u• Close or move the e and d dialog boxes• Zoom out (PgDn a few times)• Close or move the inventory dialog box• Reset the u value to zero

Page 192: Introduction to Winplot Richland College Spring 2012 John Ganci jganci@dcccd.edu

192

A2: Polar Conic• Click autocyc

Page 193: Introduction to Winplot Richland College Spring 2012 John Ganci jganci@dcccd.edu

193

A2: Polar Conic• Click Q to quit, F to speed up, S to slow

down

Page 194: Introduction to Winplot Richland College Spring 2012 John Ganci jganci@dcccd.edu

194

A2: Polar Conic• Do the same auto-animation for a

parabola• Do the same auto-animation for an

ellipse• This completes the polar conic example