#include #include #include #include int main (int a, char *p[3]){ int i; double U, f, vzorky, t, cas, u, theta, g, h, y, x, yz, yzz; U = atof(p[1]); f = atof(p[2]); vzorky = atof(p[3]); t = 0.000125; cas = 0; theta = 2*M_PI*(f/8000); g= sin(theta); h= cos(theta); if(a > 4){ printf("zapsano moc parametru\n"); return 1; } if(f<=0){ printf("frekvence nesmi byt zaporna\n"); return 1; } for(i=0 ; i