import java.applet.Applet; import java.awt.event.*; import java.awt.*; /**This class has floating point versions of the routines in the file ProofCompactify. The routines here are present mainly for the purpose of debugging.**/ public class Compactify { /**This embeds the plane in R^4**/ public static Vector4 tilde_theta(Complex z) { double x=z.x; double y=z.y; double p=GoldenRatio.phi(1); double[] X=new double[4]; X[0]=x+y; X[1]=x-y; X[2]=(x+y)/p; X[3]=(x-y)/p; Vector4 V=new Vector4(X); return(V); } public static Vector tilde_pi(Vector4 VV) { Vector4 V=new Vector4(VV); for(int j=1;j<=8;++j) { V=tilde_E(j%4,V); } Vector W=tilde_zeta(V); return(W); } /**The piecewise affine maps of R^4**/ public static Polytope tilde_E(int j,Polytope X) { Polytope Y=new Polytope(); Y.count=X.count; for(int i=0;i