import java.io.*; import java.util.*; final class C{ double x,y; C(double x,double y){ this.x=x;this.y=y; } C mul(C o){ return new C(x*o.x-y*o.y,x*o.y+y*o.x); } C div(C o){ double f1=x*o.x+y*o.y; double f2=-x*o.y+y*o.x; double s=o.sq(); return new C(f1/s,f2/s); } C sub(C o){ return new C(x-o.x,y-o.y); } C add(C o){ return new C(x+o.x,y+o.y); } double sq(){ return x*x+y*y; } } class Main { static void solve(int t,double p,double omega,double v,double gx,double gy){ C a=new C(1+v,omega); C g=new C(gx,gy); C init=new C(1,0); for(int i=0;i=0;--i) ans[i]=new C(0,0); ans[t-1]=diff; }else{ C inva=new C(1,0).div(a); //System.err.println("a="+a.x+" "+a.y+" inva="+inva.x+" "+inva.y); C zf=new C(1,0); for(int i=t-1;i>=0;--i){ //System.err.println("cur="+cur+" sum="+sum); double f=cur/sum; ans[i]=diff.mul(new C(f,0)).mul(zf); cur*=abs*abs; zf=zf.mul(inva); } } for(int i=0;i