<?xml version="1.0"?>
<CP_Scriptfile date="Nov 17, 2009">
<CPscript title="Discrete Error Function Example" level="min" screenmode="map" >
<description>We construct a discrete version of the classical error function, erf(z). By adding a generation of circles at a time in the domain, one can see the development of the logarithmic branching at 1 and -1 in the range, the asmyptotic behavior, and the multi-sheeted covering behavior.</description>
<text> A hex domain is loaded in p0. Press 'e' to apply the 'error function' construction to create p1; this involves setting the boundary radii in p1 based on the value of the error function at the center in p0, then repacking p1, laying it out, and displaying it with boundary circles shaded. Press 'a' to add a new generation to p0, then 'e' again to see the new error function image. Press '*' if you want to start over; press '1' to focus p1 in at the logarithmic branching occurring at z=1; press '2' to pull back for a view of the full packing. </text>
<cmd name="*" mnemonic="*" tooltip="Start over" iconname="debugger.png">act 0;seed 6;cleanse -p1;add_generation 3 6;gamma 61;set_rad .1 a;layout;set_screen -h 4.0;set_disp_text -w -c -cf b;disp -w -c -cf b;set_cycles 10000;set_disp_text -p1 -w -c -cf b; </cmd>
<cmd name="e" mnemonic="e" tooltip="Apply the error function, repack, display p1" iconname="delete.png">act 1;erf_ftn 0 1 2;repack -p1;layout -p1;set_screen -h 4.0;disp -p1 -w -c -cf b; </cmd>
<cmd name="a" mnemonic="a" tooltip="Add a new generation" iconname="network.png">add_gen -p0 1 6;layout -p0;set_screen -h 4.0;disp -p0 -w -c -cf b; </cmd>
<cmd inline="no" name="1" mnemonic="1" tooltip="Focus in at z=1 in the image" iconname="debugger.png">center_point -p1 1.0 0;set_screen -p1 -h .1;disp -p1 -wr; </cmd>
<cmd inline="no" name="2" mnemonic="2" tooltip="Move back for global view" iconname="delete.png">set_screen -p1 -a;disp -p1 -wr; </cmd>
  </CPscript>
<CPdata>
  </CPdata>
</CP_Scriptfile>

