<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>PIPRIME.FR &#187; Examples 2D</title>
	<atom:link href="http://www.piprime.fr/developpeur/asymptote/example-asy2d/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.piprime.fr</link>
	<description>Administrateur-Développeur GNU/Linux-WEB</description>
	<lastBuildDate>Thu, 22 Dec 2011 12:55:23 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.2.1</generator>
		<item>
		<title>Fractals with Asymptote &#8211; fig0120</title>
		<link>http://www.piprime.fr/825/Fractals-with-asymptote-fig0120/</link>
		<comments>http://www.piprime.fr/825/Fractals-with-asymptote-fig0120/#comments</comments>
		<pubDate>Wed, 31 Oct 2007 06:53:09 +0000</pubDate>
		<dc:creator>Ph. Ivaldi</dc:creator>
				<category><![CDATA[Asymptote]]></category>
		<category><![CDATA[Examples 2D]]></category>
		<category><![CDATA[Fractals]]></category>
		<category><![CDATA[array]]></category>
		<category><![CDATA[Function (recursion)]]></category>
		<category><![CDATA[Geometry]]></category>
		<category><![CDATA[Loop/for/while]]></category>
		<category><![CDATA[triangle]]></category>

		<guid isPermaLink="false">http://0eeb47d2f4cd0eb54977de6f3fe01b0a</guid>
		<description><![CDATA[You may view all the posts of the category "Fractals" (Compiled with Asymptote version 1.87svn-r4652) /* Explanations HERE */ size(12cm,0); import geometry; triangle T=triangleAbc(90,Tan(30),1); triangle[] reverse(triangle[] arr) { triangle[] or; int l=arr.length; for(int i=0; i &#60; l; ++i) { or.push(arr[l-i-1]); } return or; } triangle[] dissect(triangle T, int n, bool reverse=false) { if(n &#60;= 0) [...]]]></description>
		<wfw:commentRss>http://www.piprime.fr/825/Fractals-with-asymptote-fig0120/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Fractals with Asymptote &#8211; fig0110</title>
		<link>http://www.piprime.fr/824/Fractals-with-asymptote-fig0110/</link>
		<comments>http://www.piprime.fr/824/Fractals-with-asymptote-fig0110/#comments</comments>
		<pubDate>Wed, 31 Oct 2007 05:53:09 +0000</pubDate>
		<dc:creator>Ph. Ivaldi</dc:creator>
				<category><![CDATA[Asymptote]]></category>
		<category><![CDATA[Examples 2D]]></category>
		<category><![CDATA[Fractals]]></category>
		<category><![CDATA[array]]></category>
		<category><![CDATA[Function (recursion)]]></category>
		<category><![CDATA[Geometry]]></category>
		<category><![CDATA[Loop/for/while]]></category>
		<category><![CDATA[triangle]]></category>

		<guid isPermaLink="false">http://37d9a5bab68866e89ac297f0417a952b</guid>
		<description><![CDATA[You may view all the posts of the category "Fractals" (Compiled with Asymptote version 1.87svn-r4652) /* Explanations HERE */ import geometry; size(10cm,0); triangle[] dissect(triangle T, int n) { if(n &#60;= 0) return new triangle[]{T}; triangle[] OT; point M=midpoint(T.BC); triangle[] Tp=dissect(triangle(M,T.A,T.B),n-1); for(triangle t : Tp) OT.insert(0,t); triangle[] Tp=dissect(triangle(M,T.C,T.A),n-1); for(triangle t : Tp) OT.insert(0,t); return OT; } [...]]]></description>
		<wfw:commentRss>http://www.piprime.fr/824/Fractals-with-asymptote-fig0110/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Fractals with Asymptote &#8211; fig0100</title>
		<link>http://www.piprime.fr/823/Fractals-with-asymptote-fig0100/</link>
		<comments>http://www.piprime.fr/823/Fractals-with-asymptote-fig0100/#comments</comments>
		<pubDate>Wed, 31 Oct 2007 04:53:09 +0000</pubDate>
		<dc:creator>Ph. Ivaldi</dc:creator>
				<category><![CDATA[Asymptote]]></category>
		<category><![CDATA[Examples 2D]]></category>
		<category><![CDATA[Fractals]]></category>
		<category><![CDATA[array]]></category>
		<category><![CDATA[Function (recursion)]]></category>
		<category><![CDATA[picture]]></category>
		<category><![CDATA[Transform]]></category>

		<guid isPermaLink="false">http://4af0a343ff6bed0501ab27d568a90b88</guid>
		<description><![CDATA[You may view all the posts of the category "Fractals" (Compiled with Asymptote version 1.87svn-r4652) size(10cm,0); real a=-1.5, b=2a/3; path[] H=(-a,0)--(a,0)^^(-a,-b)--(-a,b)^^(a,-b)--(a,b); transform sc=scale(0.5); transform[] t={shift(-a,b)*sc, shift(-a,-b)*sc, shift(a,b)*sc, shift(a,-b)*sc}; void Hfractal(path[] g, int n, pen[] p=new pen[]{currentpen}) { p.cyclic=true; if(n == 0) draw(H,p[0]); else { for (int i=0; i &#60; 4; ++i) { draw(t[i]*g,p[n]); Hfractal(t[i]*g,n-1,p); } [...]]]></description>
		<wfw:commentRss>http://www.piprime.fr/823/Fractals-with-asymptote-fig0100/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Fractals with Asymptote &#8211; fig0090</title>
		<link>http://www.piprime.fr/822/Fractals-with-asymptote-fig0090/</link>
		<comments>http://www.piprime.fr/822/Fractals-with-asymptote-fig0090/#comments</comments>
		<pubDate>Wed, 31 Oct 2007 03:53:09 +0000</pubDate>
		<dc:creator>Ph. Ivaldi</dc:creator>
				<category><![CDATA[Asymptote]]></category>
		<category><![CDATA[Examples 2D]]></category>
		<category><![CDATA[Fractals]]></category>
		<category><![CDATA[array]]></category>
		<category><![CDATA[Function (recursion)]]></category>
		<category><![CDATA[picture]]></category>
		<category><![CDATA[Transform]]></category>

		<guid isPermaLink="false">http://6fe429659a5b50451f84ef7c6a802773</guid>
		<description><![CDATA[You may view all the posts of the category "Fractals" (Compiled with Asymptote version 1.87svn-r4652) size(10cm,0); real a=-1.5, b=2a/3; picture H(pen p=currentpen) { picture H; draw(H,(-a,0)--(a,0)^^(-a,-b)--(-a,b)^^(a,-b)--(a,b),p); return H; } transform sc=scale(0.5); transform[] t={identity(), shift(-a,b)*sc, shift(-a,-b)*sc, shift(a,b)*sc, shift(a,-b)*sc}; picture Hfractal(int n, pen p=currentpen) { picture pic; if(n == 0) return H(p); picture Ht=Hfractal(n-1,p); for (int i=0; [...]]]></description>
		<wfw:commentRss>http://www.piprime.fr/822/Fractals-with-asymptote-fig0090/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Fractals with Asymptote &#8211; fig0080</title>
		<link>http://www.piprime.fr/821/Fractals-with-asymptote-fig0080/</link>
		<comments>http://www.piprime.fr/821/Fractals-with-asymptote-fig0080/#comments</comments>
		<pubDate>Wed, 31 Oct 2007 02:53:09 +0000</pubDate>
		<dc:creator>Ph. Ivaldi</dc:creator>
				<category><![CDATA[Asymptote]]></category>
		<category><![CDATA[Examples 2D]]></category>
		<category><![CDATA[Fractals]]></category>
		<category><![CDATA[Loop/for/while]]></category>
		<category><![CDATA[picture]]></category>

		<guid isPermaLink="false">http://882ec33776a01c22a7deea1b24a1b142</guid>
		<description><![CDATA[You may view all the posts of the category "Fractals" (Compiled with Asymptote version 1.87svn-r4652) size(10cm,0); real mandelbrot(pair c, real r, int count=100) { int i=0; pair z=c; do { ++i; z=z^2+c; } while (length(z) &#60;= r &#38;&#38; i&#60;count); return (i&#60;count) ? i/count : 0; } real r=4; real step=.01; real xmin=-2.25, xmax=.75; real ymin=-1.3, [...]]]></description>
		<wfw:commentRss>http://www.piprime.fr/821/Fractals-with-asymptote-fig0080/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Fractals with Asymptote &#8211; fig0070</title>
		<link>http://www.piprime.fr/820/Fractals-with-asymptote-fig0070/</link>
		<comments>http://www.piprime.fr/820/Fractals-with-asymptote-fig0070/#comments</comments>
		<pubDate>Wed, 31 Oct 2007 01:53:09 +0000</pubDate>
		<dc:creator>Ph. Ivaldi</dc:creator>
				<category><![CDATA[Asymptote]]></category>
		<category><![CDATA[Examples 2D]]></category>
		<category><![CDATA[Fractals]]></category>
		<category><![CDATA[Function (recursion)]]></category>

		<guid isPermaLink="false">http://8330fa6fce290f1447231a188753c3ec</guid>
		<description><![CDATA[You may view all the posts of the category "Fractals" (Compiled with Asymptote version 1.87svn-r4652) //Translate from http://zoonek.free.fr/LaTeX/Metapost/metapost.html size(8cm); void koch(pair A, pair B, int n) { pair C; C =rotate(120, point(A--B,1/3))*A; if (n&#62;0) { koch( A, point(A--B,1/3), n-1); koch( point(A--B,1/3), C, n-1); koch( C, point(A--B,2/3), n-1); koch( point(A--B,2/3), B, n-1); } else draw(A--point(A--B,1/3)--C--point(A--B,2/3)--B); } [...]]]></description>
		<wfw:commentRss>http://www.piprime.fr/820/Fractals-with-asymptote-fig0070/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Fractals with Asymptote &#8211; fig0060</title>
		<link>http://www.piprime.fr/819/Fractals-with-asymptote-fig0060/</link>
		<comments>http://www.piprime.fr/819/Fractals-with-asymptote-fig0060/#comments</comments>
		<pubDate>Wed, 31 Oct 2007 00:53:09 +0000</pubDate>
		<dc:creator>Ph. Ivaldi</dc:creator>
				<category><![CDATA[Asymptote]]></category>
		<category><![CDATA[Examples 2D]]></category>
		<category><![CDATA[Fractals]]></category>
		<category><![CDATA[Function (creating)]]></category>
		<category><![CDATA[Function (recursion)]]></category>
		<category><![CDATA[Random]]></category>

		<guid isPermaLink="false">http://969e3fa02de8986fc956a7a5b4a6cc19</guid>
		<description><![CDATA[You may view all the posts of the category "Fractals" (Compiled with Asymptote version 1.87svn-r4652) //From documentation of Asymptote size(10cm); // Draw Sierpinski triangle with top vertex A, side s, and depth q. void Sierpinski(pair A, real s, int q, bool top=true, bool randcolor=false) { pair B=A-(1,sqrt(2))*s/2; pair C=B+s; if(top) draw(A--B--C--cycle); if (randcolor) { filldraw((A+B)/2--(B+C)/2--(A+C)/2--cycle, [...]]]></description>
		<wfw:commentRss>http://www.piprime.fr/819/Fractals-with-asymptote-fig0060/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Fractals with Asymptote &#8211; fig0050</title>
		<link>http://www.piprime.fr/818/Fractals-with-asymptote-fig0050/</link>
		<comments>http://www.piprime.fr/818/Fractals-with-asymptote-fig0050/#comments</comments>
		<pubDate>Tue, 30 Oct 2007 23:53:09 +0000</pubDate>
		<dc:creator>Ph. Ivaldi</dc:creator>
				<category><![CDATA[Asymptote]]></category>
		<category><![CDATA[Examples 2D]]></category>
		<category><![CDATA[Fractals]]></category>
		<category><![CDATA[picture]]></category>
		<category><![CDATA[Transform]]></category>

		<guid isPermaLink="false">http://f008713f861cd79d8aa1a19ba392be7a</guid>
		<description><![CDATA[You may view all the posts of the category "Fractals" (Compiled with Asymptote version 1.87svn-r4652) // Barnsley's fern // Fougère de Barnsley size(5cm,0); real ab=85, ac=-5; real rc=0.8, rb=0.3; path trk=(0,0)--(0,1); transform [] t; t[1] =shift(0,1)*rotate(ab)*scale(rb); t[2] =shift(0,1)*rotate(-ab)*scale(rb); t[3] =shift(0,1)*rotate(ac)*scale(rc); real sum=0; for(int i=0; i&#60;100; ++i) sum+=(rc*cos(ac*pi/180))^i; t[4] =xscale(0.01)*yscale(1/sum); picture pic; draw(pic,trk); pair pt=(0,0); for(int [...]]]></description>
		<wfw:commentRss>http://www.piprime.fr/818/Fractals-with-asymptote-fig0050/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Fractals with Asymptote &#8211; fig0040</title>
		<link>http://www.piprime.fr/817/Fractals-with-asymptote-fig0040/</link>
		<comments>http://www.piprime.fr/817/Fractals-with-asymptote-fig0040/#comments</comments>
		<pubDate>Tue, 30 Oct 2007 22:53:09 +0000</pubDate>
		<dc:creator>Ph. Ivaldi</dc:creator>
				<category><![CDATA[Asymptote]]></category>
		<category><![CDATA[Examples 2D]]></category>
		<category><![CDATA[Fractals]]></category>
		<category><![CDATA[picture]]></category>
		<category><![CDATA[Transform]]></category>

		<guid isPermaLink="false">http://b1717d802c3495628560a316ac8647c8</guid>
		<description><![CDATA[You may view all the posts of the category "Fractals" (Compiled with Asymptote version 1.87svn-r4652) // Barnsley's fern // Fougère de Barnsley size(10cm,0); real ab=72, ac=-7; real rc=0.85, rb=0.35; path trk=(0,0)--(0,1); transform ta=shift(0,1)*rotate(ab)*scale(rb); transform tb=shift(0,1)*rotate(-ab)*scale(rb); transform tc=shift(0,1)*rotate(ac)*scale(rc); transform td=shift(0,1)*rotate((ab+ac)/2)*scale(rb); transform te=shift(0,1)*rotate(-(ab+ac)/2)*scale(rb); picture pic; draw(pic,trk,red+.8green); //Construct a fern branch as atractor int nbit=7; for(int i=1; i&#60;=nbit; [...]]]></description>
		<wfw:commentRss>http://www.piprime.fr/817/Fractals-with-asymptote-fig0040/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Fractals with Asymptote &#8211; fig0030</title>
		<link>http://www.piprime.fr/816/Fractals-with-asymptote-fig0030/</link>
		<comments>http://www.piprime.fr/816/Fractals-with-asymptote-fig0030/#comments</comments>
		<pubDate>Tue, 30 Oct 2007 21:53:09 +0000</pubDate>
		<dc:creator>Ph. Ivaldi</dc:creator>
				<category><![CDATA[Asymptote]]></category>
		<category><![CDATA[Examples 2D]]></category>
		<category><![CDATA[Fractals]]></category>
		<category><![CDATA[Function (creating)]]></category>
		<category><![CDATA[Function (recursion)]]></category>
		<category><![CDATA[picture]]></category>
		<category><![CDATA[Transform]]></category>

		<guid isPermaLink="false">http://d73c15f76ac3361ff6b209ce64401455</guid>
		<description><![CDATA[You may view all the posts of the category "Fractals" (Compiled with Asymptote version 1.87svn-r4652) // Barnsley's fern // Fougère de Barnsley size(5cm,0); real ab=85, ac=-5; real rc=.85, rb=-.31; path trk=(0,0)--(0,1); transform ta=shift(0,1)*rotate(ab)*scale(rb); transform tb=shift(0,1)*rotate(-ab)*scale(rb); transform tc=shift(0,1)*rotate(ac)*scale(rc); picture fern(int n) { picture opic; draw(opic,trk^^ta*trk^^tb*trk^^tc*trk); if (n==0) return opic; picture branch=fern(n-1); add(opic,branch); add(opic,ta*branch); add(opic,tb*branch); add(opic,tc*branch); return [...]]]></description>
		<wfw:commentRss>http://www.piprime.fr/816/Fractals-with-asymptote-fig0030/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

