#include #include #include #define vzf 8000.0 int main(int i, char *p[]){ if(i!=4){ printf("Problem s parametry"); return 1; } double dt,t,u,f,a,b,ct=0,omega; int c,v; u = atof(p[1]); f = atof(p[2]); t = atoi(p[3]); if(f<0 || t<0 || u<0){ printf("nektery parametr je v minusu") return 2; } printf("amplituda:%9.6fV frekvence:%9.6fHz doba trvani%9.6fs\n\n",u,f,t); dt=1/vzf; omega=2*M_PI*f; v=t/dt; printf("%d\n",v); double *pole=malloc(v*sizeof(double)); for(c=0;c