Line | |
---|
1 | (* This is the same as sin.jgr only a different include file of points is
|
---|
2 | used: This one orders the points by ascending y value instead of ascending
|
---|
3 | x value. The graph looks quite different *)
|
---|
4 |
|
---|
5 | newgraph
|
---|
6 |
|
---|
7 | yaxis min -1 max 1 label : sin(i)
|
---|
8 | xaxis min -10 max 10 label : i
|
---|
9 |
|
---|
10 | (* Plot the sin curve *)
|
---|
11 | curve 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.