#include #include #include int main(int x,char *y[]){ int a; float frekvence,cas,trvani,vystup,amplituda,vzorky,sinth,costh,yted,yzpoz,DSP,ydvakratzpoz; amplituda=atof(y[1]); frekvence=atof(y[2]); trvani=atof(y[3]); vzorky=trvani/0.125; if(frekvence <= 0 || amplituda <= 0 || trvani <= 0){ printf("Zadny zapor!!!\n"); return 1; } costh= cos(2 * M_PI * (frekvence/8000)); //cos theta sinth=amplituda * sin(2 * M_PI * (frekvence/8000)); // sin theta yted=sinth; // prvnĂ­ hodnota sin theta yzpoz=0; ydvakratzpoz=0; for(a=0;a