import java.awt.*; import java.awt.event.*; import java.applet.*; import java.awt.geom.*; import java.math.*; public class Renormalize { /**In this file we study the renorm sets defined relative to the two parameters s and t=R(s). The s-parameter is considered the range and the t-parameter is considered the domain.*/ /**Here is the renormalization map*/ public static double renormReal(double s) { if(s>.5) return(1-s); double t=.5/s; t=t-Math.floor(t); return(t); } public static PolygonWrapper renormDomain(double s) { double t=renormReal(s); PolygonWrapper P=new PolygonWrapper(); if(s>.5) P=renormDomain1(t); if(s<.5) P=renormDomain2(t); return(P); } public static PolygonWrapper renormRange(double s) { if(s>.5) return(renormRange1(s)); return(renormRange2(s)); } public static Complex renormMap(double s,Complex z) { if(s>.5) return(renormMap1(s,z)); return(renormMap2(s,z)); } public static Complex renormMap1(double s,Complex z) { double t=renormReal(s); Complex z0=new Complex(-.5-.5/t,-.5); Complex w=Complex.convexAverage(t/s,z0,z); w.x=w.x+.5/t-.5/s; return(w); } public static PolygonWrapper renormRange1(double s) { double t=renormReal(s); PolygonWrapper P=renormDomain1(t); for(int i=0;i