<?xml version="1.0" encoding="utf-8" standalone="yes"?><rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom" xmlns:content="http://purl.org/rss/1.0/modules/content/"><channel><title>Mandelbrot on Karpoke - Just Another Blog</title><link>http://karpoke.ignaciocano.com/tags/mandelbrot/</link><description>Recent content in Mandelbrot on Karpoke - Just Another Blog</description><generator>Hugo -- 0.167.0</generator><language>es</language><lastBuildDate>Sun, 06 Jan 2013 01:40:00 +0100</lastBuildDate><atom:link href="http://karpoke.ignaciocano.com/tags/mandelbrot/index.xml" rel="self" type="application/rss+xml"/><item><title>High-Resolution Mandelbrot in Obfuscated Python</title><link>http://karpoke.ignaciocano.com/2013/01/06/high-resolution-mandelbrot-in-obfuscated-python/</link><pubDate>Sun, 06 Jan 2013 01:40:00 +0100</pubDate><guid>http://karpoke.ignaciocano.com/2013/01/06/high-resolution-mandelbrot-in-obfuscated-python/</guid><description>&lt;blockquote&gt;
&lt;p&gt;Here’s a followup to last month’s post about Penrose Tiling in
Obfuscated Python.
The Mandelbrot set is a traditional favorite among authors of
obfuscated code. You can find obfuscated code in C, Perl, Haskell,
Python and many other languages. Nearly all examples render the
Mandelbrot set as ASCII art.
The following Python script, on the other hand, begins as ASCII art:&lt;/p&gt;
&lt;p&gt;_ _ = (
255,
lambda
V ,B,c
:c and Y(V&lt;em&gt;V+B,B, c
-1)if(abs(V)&amp;lt;6)else
( 2+c-4_abs(V)&lt;/em&gt;&lt;em&gt;-0.4)/i
) ;v, x=1500,1000;C=range(v*x
);import struct;P=struct.pack;M,&lt;br&gt;
j =&amp;rsquo;&amp;lt;qiihhhh &amp;lsquo;,open(&amp;lsquo;M.bmp&amp;rsquo;,&amp;lsquo;wb&amp;rsquo;).write
for X in j(&amp;lsquo;BM&amp;rsquo;+P(M,v_x_3+26,26,12,v,x,1,24))or C:
i ,Y=&lt;/em&gt;;j(P(&amp;lsquo;BBB&amp;rsquo;,_(lambda T:(T_80+T__9
_i-950_T &lt;em&gt;&lt;em&gt;99,T&lt;em&gt;70-880&lt;/em&gt;T&lt;/em&gt;&lt;em&gt;18+701&lt;/em&gt;
T __9 ,T*i&lt;/em&gt;*(1-T*_45_2)))(sum(
[ Y(0,(A%3/3.+X%v+(X/v+
A/3/3.-x/2)/1j)*2.5
/x -2.7,i)**2 for &lt;br&gt;
A in C
[:9]])
/9)
) )&lt;/p&gt;
&lt;p&gt;» Jeff Preshing | &lt;a href="http://preshing.com/20110926/high-resolution-mandelbrot-in-obfuscated-python"&gt;preshing.com&lt;/a&gt;&lt;/p&gt;
&lt;/blockquote&gt;</description></item></channel></rss>