//***********************************************************************************
/** Class to return iterate of Bakers' map function.
*/
//***********************************************************************************
public class BakersFunction extends Map2DFunction {
double X,Y;
BakersFunction() {
nParameters=3;
a = new double[nParameters];
aDefault = new double[nParameters];
aDefault[0]=0.4;
aDefault[1]=0.6;
aDefault[2]=0.2;
title = "Bakers Map";
xminDefault=0.0;
xmaxDefault=1.0;
yminDefault=0.0;
ymaxDefault=1.0;
}
//***********************************************************************************
/** iterates the map function
* @param x input value
* @return iterated value
*/
//***********************************************************************************
public void iterate(double[] x) {
X = x[0];
Y = x[1];
if (Y