Hi, I have a question about generating a 1kHz sine wave.

First of all, we can't use the sin function so I just made a function that evaluates sin at some point...

```
int generate_sin(int t);
{
int sin;
sin = t - ((t^3)/(3*2*1)) + ((t^5)/(5*4*3*2*1));
return sin;
}
```

Now, this function will evaulate sin at some number t but I am confused about the 1 kHz part...

I'm probably just confused about the math behind it but how do I generate an entire 1kHz wave.

Thanks