File: sin2.jgr

package info (click to toggle)
jgraph 83-20
  • links: PTS
  • area: main
  • in suites: sarge
  • size: 628 kB
  • ctags: 445
  • sloc: ansic: 4,728; makefile: 186; sh: 106; awk: 104
file content (28 lines) | stat: -rw-r--r-- 469 bytes parent folder | download | duplicates (6)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
(* Now this is a sin wave from 0.1 to 100 with logarithmic axes *)

newgraph 

yaxis min -1 max 1 
  label : sin(i)
xaxis log 
  label : i

title : I vs sin(i);

(* Plot the sin curve *)
curve 1 
  marktype none
  linetype solid
  pts include sin2.pts
   (* sin2.pts was created by the following c program:

     #include <math.h>
     main();
     {
       double x;
       for (x = 0.1; x < 100.0; x += .03)
         printf("%f %f\n", x, sin(x));
     }
     
   *)