Revision 12350,
759 bytes
checked in by ghudson, 26 years ago
(diff) |
Some RCS ID cleanup: delete $Log$ and replace other RCS keywords with $Id$.
|
Line | |
---|
1 | /* |
---|
2 | * $Id: sintable.c,v 1.2 1999-01-22 23:17:09 ghudson Exp $ |
---|
3 | * |
---|
4 | * Copyright 1990, 1991 by the Massachusetts Institute of Technology. |
---|
5 | * |
---|
6 | * For copying and distribution information, please see the file |
---|
7 | * <mit-copyright.h>. |
---|
8 | * |
---|
9 | */ |
---|
10 | |
---|
11 | #if (!defined(lint)) && (!defined(SABER)) |
---|
12 | static char rcsid[] = |
---|
13 | "$Id: sintable.c,v 1.2 1999-01-22 23:17:09 ghudson Exp $"; |
---|
14 | #endif |
---|
15 | |
---|
16 | #include "mit-copyright.h" |
---|
17 | #include <math.h> |
---|
18 | #include <stdio.h> |
---|
19 | #include "AClock.h" |
---|
20 | |
---|
21 | main() |
---|
22 | { |
---|
23 | int i; |
---|
24 | |
---|
25 | printf("static int sinTable[%d] = {", ANGLES); |
---|
26 | |
---|
27 | for (i = 0; i < ANGLES; i++) |
---|
28 | { |
---|
29 | if ((i % 11) == 0) |
---|
30 | printf("\n"); |
---|
31 | |
---|
32 | printf(" %d,", |
---|
33 | (int)( ((double)SCALE) * |
---|
34 | (sin( |
---|
35 | ((double) i) * |
---|
36 | HALFPI / |
---|
37 | ((double) ANGLES))))); |
---|
38 | } |
---|
39 | printf(" };\n"); |
---|
40 | exit(0); |
---|
41 | } |
---|
Note: See
TracBrowser
for help on using the repository browser.