import java.applet.Applet; import java.awt.*; import java.awt.event.*; import java.applet.*; import java.awt.geom.*; import java.math.*; import java.io.*; /**This class contains routines which help with the rigorous verification routines in the files VerifyTile VerifyRenorm VerifyReduction **/ public class VerifySupport { /**THE COMPACTIFICATION MAP**/ /**This is the basic map into the torus. Everything is scaled by 2 to avoid leaving the ring Z[phi].**/ public static GoldenVector theta(GoldenComplex z) { GoldenReal A=new GoldenReal(-3,2); GoldenReal B=new GoldenReal(-1,1); GoldenReal ONE=new GoldenReal(1,0); GoldenReal x=GoldenReal.plus(ONE,GoldenReal.times(z.x,B)); GoldenReal y=GoldenReal.plus(ONE,GoldenReal.minus(z.x,z.y)); x.a[0]=x.a[0]*2; x.a[1]=x.a[1]*2; GoldenReal t=GoldenReal.times(new GoldenReal(2,0),z.y); GoldenVector V=new GoldenVector(x,y,t); V=fundamentalDomain(V); return(V); } public static GoldenPolyhedron theta(GoldenPolyWedge W) { GoldenPolyhedron P=new GoldenPolyhedron(); P.count=W.count; for(int i=0;i