Line | |
---|

1 | (* This is a file to draw sin(i) for i going from -10 to 10. The actual |
---|

2 | * points were created by a c program which is included below. *) |
---|

3 | |
---|

4 | newgraph |
---|

5 | |
---|

6 | yaxis min -1 max 1 label : sin(i) |
---|

7 | xaxis min -10 max 10 label : i |
---|

8 | |
---|

9 | (* Plot the sin curve *) |
---|

10 | curve 1 |
---|

11 | marktype none |
---|

12 | linetype solid |
---|

13 | pts shell : ./sin |
---|

14 | (* sin is the executable of the following c program: |
---|

15 | |
---|

16 | #include <math.h> |
---|

17 | main(); |
---|

18 | { |
---|

19 | double x; |
---|

20 | for (x = -10.0; x < 10.0; x += .03) |
---|

21 | printf("%f %f\n", x, sin(x)); |
---|

22 | } |
---|

23 | |
---|

24 | *) |
---|

**Note:** See

TracBrowser
for help on using the repository browser.