12.07.2015 Views

Learning Guide Learning Guide

Learning Guide Learning Guide

Learning Guide Learning Guide

SHOW MORE
SHOW LESS
  • No tags were found...

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

4.1 Graphing in Two Dimensions • 1091.41.21y0.80.60.40.2–0.2 0–0.45 10 15 20 25xYou can also change the line style by using the standard menus andthe context-sensitive menus. Similarly, specify the colors of the graphs byusing the color option. (You can see the effect with a color display but,in this book, the lines appear in two different shades of grey.)> plot( [ [f(x), D(f)(x), x=-2..2],> [D(f)(x), (D@@2)(f)(x), x=-2..2] ],> color=[gold, plum] );432101 2 3 4 5–1For more details on colors, refer to ?plot,color.Plotting Data PointsTo plot numeric data, call pointplot with the data in a list of lists of theform[[x 1 , y 1 ], [x 2 , y 2 ], . . . , [x n , y n ]].If the list is long, assign it to a name.> data_list:=[[-2,4],[-1,1],[0, 0],[1,1],[2,4],[3,9],[4,16]];data_list :=[[−2, 4], [−1, 1], [0, 0], [1, 1], [2, 4], [3, 9], [4, 16]]

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!