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); } 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){ double f=cur/sum; ans[i]=diff.mul(new C(f,0)).mul(zf); cur*=abs; zf=zf.mul(inva); } for(int i=0;i