File: sin.jgr

package info (click to toggle)
jgraph 83-19
  • links: PTS
  • area: main
  • in suites: woody
  • size: 624 kB
  • ctags: 445
  • sloc: ansic: 4,728; makefile: 186; sh: 106; awk: 104
file content (24 lines) | stat: -rw-r--r-- 523 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
(* This is a file to draw sin(i) for i going from -10 to 10.  The actual
 * points were created by a c program which is included below. *) 

newgraph 

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

(* Plot the sin curve *)
curve 1 
  marktype none
  linetype solid
  pts shell : ./sin
   (* sin is the executable of the following c program:

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