Psst.. new poll here.
Psst.. new forums here.
Microsoft is blocking us again (TY IP Reputation!) so just use oauth login instead. :)
Paste
Pasted as C by Martyna ( 6 years ago )
void sygnal(double* tab, double* dziedzina, double El, double tab_wsp[12][2], double A0, double T)
{
double x = 0;
for (int i = 0; i < El; i++)
{
double temp = 0;
for (int j = 2; j < 12; j++)
{
x = *(dziedzina + i);
temp = temp + tab_wsp[j][0] * cos(((double)j - 1) * x / T) + tab_wsp[j][1] * sin(((double)j - 1) * x / T);
}
*(tab + i) = temp+ A0/2;
}
}
Revise this Paste