/* 数学丢光了,只能无耻抄公式了 //公式推导:V2=iR=CR d/dt(Vs*cos(wt)-Vr*cos(wt+b))=Vrcos(wt+b) // CRw(sin(wt+b)-sin(wt))=Vr*cos(wt+b) // 令t=0化简得: tan(b)=1/(CRw)-------------(1) // 令wt+b=0化简得:Vr=CRwVs*sin(b)------------(2) // 由(1),(2)得: Vr=CRwVs/sqrt(1+(CRw)^2)) */ #include<stdio.h> #include<math.h> main() { float Vs, R, C, w; int n; scanf("%f%f%f", &Vs, &R, &C); scanf("%d", &n); while (scanf("%f", &w),n--) printf("%.3f\n", C*R*w*Vs/sqrt(1+(C*R*w)*(C*R*w))); }