source: trunk/Jgraph/sin3.jgr

Last change on this file was 418, checked in by Nicholas Riley, 13 years ago

Jgraph 8.3 from http://www.cs.utk.edu/~plank/plank/jgraph/jgraph.tar.gz

File size: 630 bytes
Line 
1(* This is the same as sin.jgr only a different include file of points is
2used:  This one orders the points by ascending y value instead of ascending
3x value.  The graph looks quite different *)
4
5newgraph
6
7yaxis min -1 max 1 label : sin(i)
8xaxis min -10 max 10 label : i
9
10(* Plot the sin curve *)
11curve 1
12  marktype none
13  linetype solid
14  pts include sin3.pts
15   (* sin.pts was created by the following c program:
16
17     #include <math.h>
18     main();
19     {
20       double x;
21       for (x = -10.0; x < 10.0; x += .03)
22         printf("%f %f\n", x, sin(x));
23     }
24     
25   * and then the output was piped through sort -n +1 *)
Note: See TracBrowser for help on using the repository browser.