Line | |
---|
1 | (* Now this is a sin wave from 0.1 to 100 with logarithmic axes *)
|
---|
2 |
|
---|
3 | newgraph
|
---|
4 |
|
---|
5 | yaxis min -1 max 1
|
---|
6 | label : sin(i)
|
---|
7 | xaxis log
|
---|
8 | label : i
|
---|
9 |
|
---|
10 | title : I vs sin(i);
|
---|
11 |
|
---|
12 | (* Plot the sin curve *)
|
---|
13 | curve 1
|
---|
14 | marktype none
|
---|
15 | linetype solid
|
---|
16 | pts include sin2.pts
|
---|
17 | (* sin2.pts was created by the following c program:
|
---|
18 |
|
---|
19 | #include <math.h>
|
---|
20 | main();
|
---|
21 | {
|
---|
22 | double x;
|
---|
23 | for (x = 0.1; x < 100.0; x += .03)
|
---|
24 | printf("%f %f\n", x, sin(x));
|
---|
25 | }
|
---|
26 |
|
---|
27 | *)
|
---|
28 |
|
---|
Note:
See
TracBrowser
for help on using the repository browser.