<?xml version="1.0"?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1 plus MathML 2.0//EN" 
               "http://www.w3.org/TR/MathML2/dtd/xhtml-math11-f.dtd" [
  <!ENTITY mathml "http://www.w3.org/1998/Math/MathML">
]>
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en">
<head>
<link rel="stylesheet" type="text/css" href="../../../comsci/css/s011.css"/>
<link rel='SHORTCUT ICON' href='../../../comsci/images/FrameHome.ico' />
<style type="text/css">
</style>
<title> Fractals </title>
</head>

<body>


<div class="message_right">
  <a href="http://validator.w3.org/check/referer">
    <img src="http://www.w3.org/Icons/valid-xhtml11" alt="Valid
	XHTML 1.1!" height="31" width="88" />
  </a>

  <a href="http://jigsaw.w3.org/css-validator/">
    <img style="width:88px;height:31px"
       src="http://jigsaw.w3.org/css-validator/images/vcss" 
       alt="Valid CSS!" />
  </a>
  <br/>
  Created 2004-07-16 &nbsp; Modified 
<!--UPDATE_DATE_MODIFIED-->
<!--UPDATE_DATE_BEGIN-->
2007-01-01
<br/>
<a href="mailto:chelton.evans@yahoo.com">Chelton Evans</a>
<!--UPDATE_DATE_END-->
</div>

<h1>
<a href="geom.html"> <img alt="proj" src="../../../comsci/images/compgeom.png" /></a>
Procedural Methods - Language Based Models 
</h1>


<p>
<a href="#Intro">Intro</a><br/>

<a href="#Turtle_Graphics_Example">Turtle Graphics Example</a><br/>
<a href="#Hilbert_Curve">Hilbert Curve</a><br/>
<a href="#Other_Fractals">Other Fractals</a>

</p>



<div class="float25">
<a id="Intro"></a>
<h2>Intro</h2>
<p> I was reading "Interactive Computer Graphics ..." by E. Angel who gave this title to describe operations using
 algebra to generate fractals.  Firstly its just combining

 algebra and turtle graphics and geometry. 
</p>

<p>
For some reason computer scientists have called the
 algebra Language Based Models, perhaps they would
 care to rename Calculus, the name is pretty old.
 But they aren't the first - plenty of names are
 hijacked for political motives as fields rise and die.
</p>

<p> My point is that it doesn't matter what people
 call something, it can often be thought of more
 generally anyway(or differently). 
 Definitions are there to be 
 operated on, however most people are anal re-tentative
 on definitions which is unfortunate.
</p>

</div>

<div class="float25">

<a id="Turtle_Graphics_Example"></a>
<h2> Turtle Graphics Example </h2>

<p> Generate the Koch snowflake by applying the
 Koch curve to an equilateral triangle. By having
 both geometric objects described with the same primitives things can be easily built. 
</p>

<p> F is Forward, L is turn Left 60 degrees, R is turn 
 Right 60 degrees.
</p>

<p> 
  Koch : F -> FLFRRFLF <br/>
 Apply Koch to Equilateral Triangle FRRFRRF .
</p>

<p> Substitutions can go along way but some curves
 are hard to build. The substitution is the repetitive
 or fractal part.
</p>

</div>

<div class="float25">
<a id="Hilbert_Curve"></a>
<h2> Hilbert Curve </h2>

<p> Angle gives the algebra as a set of 4 equations
 associated with 4 orientations.  As can be seen
 from the diagram the "substitution" is expresses
 in one transition diagram instead of 4 equations
 because the geometry does not account for fixed
 orientations.
 
</p>

<p> So when you see a complicated formula there is
 always a simple idea behind it eg I just reduced
 4 equations to 1.
</p>

<p>A note of interest is that the original 3 lines
 are preserved but rescaled and 4 new U shapes
 are added.
</p>

<img src="diagg01501.png" alt="diagg01501.png" />

<a id="Other_Fractals"></a>
<h2> Other Fractals </h2>

<p> 
<a href="g007.xml">  
Mandelbrot's Peano-snowflake 
</a>
 &nbsp; 
Uses Geometry and Areas for seeing the fractal pattern.
</p>


<a href="../../../misc/opgl/opgl012.cpp.txt">
  <img alt="opgl012.cpp" 
    src="../../../misc/opgl/opgl012.png" />
</a>





</div>

</body>
</html>



